]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser.h
Lots of stylistic fixes.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser.h
index e76d8f4ca9b36ec5122bcd12a68f958f2c1ed431..7a71a2a8e03aebd095684c99f7d1f07f790238c5 100644 (file)
@@ -39,6 +39,7 @@ public:
     virtual ~BASE_PARSER() {}
     virtual int ParseStart(void *data, const char *el, const char **attr) = 0;
     virtual int ParseEnd(void *data, const char *el) = 0;
+    virtual void Reset() { answerList->clear(); depth = 0; }
 
     void SetAnswerList(std::list<std::string> * ansList) { answerList = ansList; }
 
@@ -50,7 +51,6 @@ public:
 
     void SetCurrAdmin(ADMIN & cua) { currAdmin = &cua; }
     std::string & GetStrError() { return strError; }
-    void Reset() { answerList->clear(); depth = 0; }
 
 protected:
     BASE_PARSER(const BASE_PARSER & rvalue);
@@ -97,7 +97,6 @@ public:
 private:
     std::string adminToDel;
 
-    int CheckAttr(const char **attr);
     void CreateAnswer();
 };
 //-----------------------------------------------------------------------------