X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..312c0eec08cfff18956ff4e238f6b6982bb0e721:/libs/srvconf/parsers/base.h 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