summaryrefslogtreecommitdiff
path: root/netfs/daemonConfig.h
diff options
context:
space:
mode:
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
+