git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 37. The readTime() changed to str2x(), default value in the
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
sgconfig
/
parser.h
diff --git
a/projects/stargazer/plugins/configuration/sgconfig/parser.h
b/projects/stargazer/plugins/configuration/sgconfig/parser.h
index 035dae8f76c3c955468a99d848086d16c21110d9..af77158d6324d1032a922d9c503fa45b9035fe58 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig/parser.h
+++ b/
projects/stargazer/plugins/configuration/sgconfig/parser.h
@@
-22,12
+22,19
@@
#define PARSER_H
#include <string>
#define PARSER_H
#include <string>
+#include <map>
class ADMIN;
class BASE_PARSER
{
public:
class ADMIN;
class BASE_PARSER
{
public:
+ struct FACTORY
+ {
+ virtual BASE_PARSER * create(const ADMIN & admin) = 0;
+ };
+ typedef std::map<std::string, FACTORY *> REGISTRY;
+
BASE_PARSER(const ADMIN & admin, const std::string & t)
: m_currAdmin(admin),
m_depth(0),
BASE_PARSER(const ADMIN & admin, const std::string & t)
: m_currAdmin(admin),
m_depth(0),