-class ADMIN;
-
-class CORPORATIONS {
-public:
- virtual ~CORPORATIONS() {}
- 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;
+namespace STG
+{
+
+class Admin;
+struct CorpConf;
+
+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;