diff options
author | randomdan <randomdan@localhost> | 2010-10-06 19:12:24 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-10-06 19:12:24 +0000 |
commit | 4cd9f97f851355c90a84c56bd3abbe2c9ab03a39 (patch) | |
tree | f838cc5a14a204dca7e44332d2b5c7f52b8bead3 /netfs/daemonConfig.h | |
parent | Ahhhh so bjam IS all knowing (diff) | |
download | netfs-4cd9f97f851355c90a84c56bd3abbe2c9ab03a39.tar.bz2 netfs-4cd9f97f851355c90a84c56bd3abbe2c9ab03a39.tar.xz netfs-4cd9f97f851355c90a84c56bd3abbe2c9ab03a39.zip |
Commit more work to date
Diffstat (limited to 'netfs/daemonConfig.h')
-rw-r--r-- | netfs/daemonConfig.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/netfs/daemonConfig.h b/netfs/daemonConfig.h index 223436c..a27f686 100644 --- a/netfs/daemonConfig.h +++ b/netfs/daemonConfig.h @@ -4,12 +4,14 @@ #include <string> #include <map> #include <set> -#include "smartpointer.h" +#include <intrusivePtrBase.h> +#include <boost/intrusive_ptr.hpp> +#include <boost/filesystem/path.hpp> #include "xml.h" -class DaemonConfig : public virtual IsRefCounted { +class DaemonConfig : public virtual IntrusivePtrBase { public: - class Host : public virtual IsRefCounted { + class Host : public virtual IntrusivePtrBase { public: Host(xmlNodePtr); @@ -17,30 +19,30 @@ class DaemonConfig : public virtual IsRefCounted { std::string name; bool self; }; - typedef SmartPointer<Host> HostPtr; + typedef boost::intrusive_ptr<Host> HostPtr; typedef std::map<std::string, HostPtr> HostMap; typedef std::set<HostPtr> HostSet; - class Export : public virtual IsRefCounted { + class Export : public virtual IntrusivePtrBase { public: Export(xmlNodePtr, const HostMap &); - std::string root; - std::string name; - HostSet replicate; + boost::filesystem::path root; + std::string name; + HostSet replicate; }; - typedef SmartPointer<Export> ExportPtr; + typedef boost::intrusive_ptr<Export> ExportPtr; typedef std::map<std::string, ExportPtr> ExportMap; DaemonConfig(xmlNodePtr); - static SmartPointer<DaemonConfig> Load(const char * path); + static boost::intrusive_ptr<DaemonConfig> Load(const char * path); ExportMap exports; HostMap hosts; HostPtr self; }; -typedef SmartPointer<DaemonConfig> DaemonConfigPtr; +typedef boost::intrusive_ptr<DaemonConfig> DaemonConfigPtr; #endif |