X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d25555ce9c6e09344356868780e678c75bbbd164..8f46a826a07310dbd76e4b3a15f63ae055272542:/include/stg/corporations.h diff --git a/include/stg/corporations.h b/include/stg/corporations.h index ad23967e..a25e60df 100644 --- a/include/stg/corporations.h +++ b/include/stg/corporations.h @@ -15,7 +15,7 @@ */ /* - * Author : Maxim Mamontov + * Author : Maksym Mamontov */ #ifndef CORPORATIONS_H @@ -25,13 +25,16 @@ #include "corp_conf.h" +class ADMIN; + class CORPORATIONS { public: - virtual int Add(const CORP_CONF & corp) = 0; - virtual int Del(const std::string & name) = 0; - virtual int Change(const CORP_CONF & corp) = 0; - virtual bool FindCorp(const std::string & name, CORP_CONF & corp) = 0; - virtual bool CorpExists(const std::string & name) const = 0; + 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; virtual size_t Count() const = 0;