git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stargazer (#6)
[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 8bddc5178055cbab605b1efe0258d397a26a2f03..a030b9960eb1a8806a1ae5b151aafca67c8843d7 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig/parser.h
+++ b/
projects/stargazer/plugins/configuration/sgconfig/parser.h
@@
-18,13
+18,15
@@
* Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
*/
* Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
*/
-#ifndef PARSER_H
-#define PARSER_H
+#pragma once
#include <string>
#include <map>
#include <string>
#include <map>
-class ADMIN;
+namespace STG
+{
+class Admin;
+}
class BASE_PARSER
{
class BASE_PARSER
{
@@
-32,11
+34,11
@@
class BASE_PARSER
struct FACTORY
{
virtual ~FACTORY() {}
struct FACTORY
{
virtual ~FACTORY() {}
- virtual BASE_PARSER * create(const
ADMIN
& admin) = 0;
+ virtual BASE_PARSER * create(const
STG::Admin
& admin) = 0;
};
typedef std::map<std::string, FACTORY *> REGISTRY;
};
typedef std::map<std::string, FACTORY *> REGISTRY;
- BASE_PARSER(const
ADMIN
& admin, const std::string & t)
+ BASE_PARSER(const
STG::Admin
& admin, const std::string & t)
: m_currAdmin(admin),
m_depth(0),
m_tag(t)
: m_currAdmin(admin),
m_depth(0),
m_tag(t)
@@
-54,7
+56,7
@@
class BASE_PARSER
BASE_PARSER(const BASE_PARSER & rvalue);
BASE_PARSER & operator=(const BASE_PARSER & rvalue);
BASE_PARSER(const BASE_PARSER & rvalue);
BASE_PARSER & operator=(const BASE_PARSER & rvalue);
- const
ADMIN
& m_currAdmin;
+ const
STG::Admin
& m_currAdmin;
size_t m_depth;
std::string m_answer;
std::string m_tag;
size_t m_depth;
std::string m_answer;
std::string m_tag;
@@
-62,5
+64,3
@@
class BASE_PARSER
private:
virtual void CreateAnswer() = 0;
};
private:
virtual void CreateAnswer() = 0;
};
-
-#endif //PARSER_H