X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/305dd917d2ba383e8c468c006d1d75edbc705337..783ed451825ea18f1bec2502cb3fcecda653234a:/include/stg/corporations.h?ds=sidebyside diff --git a/include/stg/corporations.h b/include/stg/corporations.h index cc147fc6..e167301b 100644 --- a/include/stg/corporations.h +++ b/include/stg/corporations.h @@ -21,18 +21,22 @@ #ifndef CORPORATIONS_H #define CORPORATIONS_H +#include "corp_conf.h" + #include -#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; virtual int OpenSearch() const = 0; virtual int SearchNext(int, CORP_CONF * corp) const = 0;