]> git.stg.codes - stg.git/blob - stglibs/srvconf.lib/include/stg/parser_auth_by.h
3ef1d00caa8771ef78bb15d6ba935d6766a741c9
[stg.git] / stglibs / srvconf.lib / include / stg / parser_auth_by.h
1 #ifndef __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__
2 #define __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__
3
4 #include "stg/parser.h"
5
6 #include <vector>
7 #include <string>
8
9 class PARSER_AUTH_BY: public PARSER
10 {
11 public:
12     typedef std::vector<std::string> INFO;
13     typedef void (* CALLBACK)(const INFO & info, void * data);
14
15     PARSER_AUTH_BY();
16     int  ParseStart(const char *el, const char **attr);
17     void ParseEnd(const char *el);
18     void SetCallback(CALLBACK f, void * data);
19 private:
20     CALLBACK callback;
21     void * data;
22     int depth;
23     INFO info;
24 };
25
26 #endif