X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..a81de6b87af0134d4ecd8f810b213af456400566:/libs/srvconf/parsers/base.h?ds=sidebyside diff --git a/libs/srvconf/parsers/base.h b/libs/srvconf/parsers/base.h index 4f84d874..b7973e8a 100644 --- a/libs/srvconf/parsers/base.h +++ b/libs/srvconf/parsers/base.h @@ -19,23 +19,20 @@ * Author : Maxim Mamontov */ -#ifndef __STG_STGLIBS_SRVCONF_PARSER_H__ -#define __STG_STGLIBS_SRVCONF_PARSER_H__ +#pragma once #include namespace STG { -class PARSER +struct Parser { -public: - virtual ~PARSER() {} - virtual int ParseStart(const char * el, const char ** attr) = 0; - virtual void ParseEnd(const char * el) = 0; - virtual void Failure(const std::string & reason) = 0; + virtual ~Parser() = default; + + virtual int ParseStart(const char* el, const char** attr) = 0; + virtual void ParseEnd(const char* el) = 0; + virtual void Failure(const std::string& reason) = 0; }; } // namespace STG - -#endif