]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parser_server_info.cpp
Moved base and utility classes from global scope.
[stg.git] / stglibs / srvconf.lib / parser_server_info.cpp
index 645f6099f2f8adde7e96363b70618a04fc56fbc7..d4c610e0aea839f9311011cb2d02160aceff2cbf 100644 (file)
@@ -19,7 +19,7 @@
  *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
  */
 
  *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
  */
 
-#include "stg/parser_server_info.h"
+#include "parser_server_info.h"
 
 #include "stg/common.h"
 
 
 #include "stg/common.h"
 
@@ -28,6 +28,8 @@
 
 #include <strings.h>
 
 
 #include <strings.h>
 
+using namespace STG;
+
 namespace
 {
 
 namespace
 {
 
@@ -37,7 +39,7 @@ const size_t DIRNAME_LEN  = 16;
 
 }
 
 
 }
 
-PARSER_SERVER_INFO::PARSER_SERVER_INFO()
+SERVER_INFO::PARSER::PARSER()
     : callback(NULL),
       data(NULL),
       depth(0),
     : callback(NULL),
       data(NULL),
       depth(0),
@@ -54,7 +56,7 @@ PARSER_SERVER_INFO::PARSER_SERVER_INFO()
         AddParser(propertyParsers, "dir_name_" + x2str(i), info.dirName[i], GetEncodedValue);
 }
 //-----------------------------------------------------------------------------
         AddParser(propertyParsers, "dir_name_" + x2str(i), info.dirName[i], GetEncodedValue);
 }
 //-----------------------------------------------------------------------------
-int PARSER_SERVER_INFO::ParseStart(const char *el, const char **attr)
+int SERVER_INFO::PARSER::ParseStart(const char *el, const char **attr)
 {
 depth++;
 if (depth == 1)
 {
 depth++;
 if (depth == 1)
@@ -67,7 +69,7 @@ else
 return 0;
 }
 //-----------------------------------------------------------------------------
 return 0;
 }
 //-----------------------------------------------------------------------------
-void PARSER_SERVER_INFO::ParseEnd(const char * /*el*/)
+void SERVER_INFO::PARSER::ParseEnd(const char * /*el*/)
 {
 depth--;
 if (depth == 0 && parsingAnswer)
 {
 depth--;
 if (depth == 0 && parsingAnswer)
@@ -79,7 +81,7 @@ if (depth == 0 && parsingAnswer)
     }
 }
 //-----------------------------------------------------------------------------
     }
 }
 //-----------------------------------------------------------------------------
-void PARSER_SERVER_INFO::SetCallback(CALLBACK f, void * d)
+void SERVER_INFO::PARSER::SetCallback(CALLBACK f, void * d)
 {
 callback = f;
 data = d;
 {
 callback = f;
 data = d;