X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7b66bdcccfa4aad5a8e4110bf4769bc13c15dcfd..ebd170a764ab9660adee464588cda1801c7986b4:/include/stg/corporations.h

diff --git a/include/stg/corporations.h b/include/stg/corporations.h
index 88c1e8bd..d5898fa7 100644
--- a/include/stg/corporations.h
+++ b/include/stg/corporations.h
@@ -18,28 +18,30 @@
  *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
  */
 
-#ifndef CORPORATIONS_H
-#define CORPORATIONS_H
+#pragma once
 
 #include <string>
 
-#include "corp_conf.h"
+namespace STG
+{
 
-class ADMIN;
+class Admin;
+struct CorpConf;
 
-class CORPORATIONS {
-public:
-    virtual int Add(const CORP_CONF & corp, const ADMIN * admin) = 0;
-    virtual int Del(const std::string & name, const ADMIN * admin) = 0;
-    virtual int Change(const CORP_CONF & corp, const ADMIN * admin) = 0;
-    virtual bool Find(const std::string & name, CORP_CONF * corp) = 0;
-    virtual bool Exists(const std::string & name) const = 0;
-    virtual const std::string & GetStrError() const = 0;
+struct Corporations {
+    virtual ~Corporations() = default;
+
+    virtual int Add(const CorpConf& corp, const Admin* admin) = 0;
+    virtual int Del(const std::string& name, const Admin* admin) = 0;
+    virtual int Change(const CorpConf& corp, const Admin* admin) = 0;
+    virtual bool Find(const std::string& name, CorpConf* corp) = 0;
+    virtual bool Exists(const std::string& name) const = 0;
+    virtual const std::string& GetStrError() const = 0;
     virtual size_t Count() const = 0;
 
     virtual int OpenSearch() const = 0;
-    virtual int SearchNext(int, CORP_CONF * corp) const = 0;
+    virtual int SearchNext(int, CorpConf* corp) const = 0;
     virtual int CloseSearch(int) const = 0;
 };
 
-#endif
+}