summaryrefslogtreecommitdiff
path: root/netfs/daemonConfig.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2009-10-17 17:26:04 +0000
committerrandomdan <randomdan@localhost>2009-10-17 17:26:04 +0000
commit90a05228972cd8d180c2723f71ba94e94d1133b3 (patch)
tree27ab7a2609bf5e6bb1ff4206348a648f3f1b3efc /netfs/daemonConfig.h
parentImported sources (diff)
downloadnetfs-90a05228972cd8d180c2723f71ba94e94d1133b3.tar.bz2
netfs-90a05228972cd8d180c2723f71ba94e94d1133b3.tar.xz
netfs-90a05228972cd8d180c2723f71ba94e94d1133b3.zip
*** empty log message ***
Diffstat (limited to 'netfs/daemonConfig.h')
-rw-r--r--netfs/daemonConfig.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/netfs/daemonConfig.h b/netfs/daemonConfig.h
new file mode 100644
index 0000000..d15fade
--- /dev/null
+++ b/netfs/daemonConfig.h
@@ -0,0 +1,31 @@
+#ifndef DAEMONCONFIG_H
+#define DAEMONCONFIG_H
+
+#include <string>
+#include <map>
+#include "smartpointer.h"
+#include "xml.h"
+
+class DaemonConfig : public virtual IsRefCounted {
+ public:
+ class Export : public virtual IsRefCounted {
+ public:
+ Export(xmlNodePtr);
+
+ std::string root;
+ std::string name;
+ };
+ typedef SmartPointer<Export> ExportPtr;
+ typedef std::map<std::string, ExportPtr> ExportMap;
+
+ DaemonConfig(xmlNodePtr);
+ static SmartPointer<DaemonConfig> Load(const char * path);
+
+
+ std::string tcpPort;
+ ExportMap exports;
+};
+typedef SmartPointer<DaemonConfig> DaemonConfigPtr;
+
+#endif
+