summaryrefslogtreecommitdiff
path: root/src/conf/conf.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commit56187184e11b085b82584d3b088c62f427aae83c (patch)
tree8f8387e750a62581966900a42dade265d34c3146 /src/conf/conf.h
parentd3a0d11f93c1ebe38b4301c9bef952bfd24d01a1 (diff)
tagging yhttpd-0.7.1yhttpd-0.7.1
Diffstat (limited to 'src/conf/conf.h')
-rwxr-xr-xsrc/conf/conf.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/conf/conf.h b/src/conf/conf.h
index 7dc779c..7508872 100755
--- a/src/conf/conf.h
+++ b/src/conf/conf.h
@@ -1,30 +1,27 @@
+// class conf declaration. this class parses the server config file.
+
#ifndef CONF_H
#define CONF_H
-class conf; // Predefine for nmap.tmpl
+class conf;
-#include <map>
#include "../incl.h"
-#include "../maps/shashmap.h"
+#include "../maps/nmap.h"
#include "../name.h"
#include "../contrib/xml/tinyxml.h"
using namespace std;
-class conf : public shashmap<string>, name
+class conf : public nmap<string,string>, name
{
private:
- TiXmlDocument* p_xml;
- void exit_if_xml_error() const;
- void parse_xml( TiXmlNode* p_node, vector<string>* p_vec);
-
+ TiXmlDocument* p_xml;
+ void exit_if_xml_error() const;
+ void parse_xml( TiXmlNode* p_node, vector<string>* p_vec);
public:
- conf(string s_conf, map<string,string>* p_main_loop_params);
- ~conf();
-
- string colored_error_msg(string s_key); //<<
- int get_int(string s_key);
- vector<string> get_vector(string s_key);
+ //conf ( string s_conf );
+ conf ( string s_conf, map<string,string>* p_start_params );
+ ~conf();
};
#endif