summaryrefslogtreecommitdiff
path: root/project2/config.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-08-31 21:48:04 +0000
committerrandomdan <randomdan@localhost>2011-08-31 21:48:04 +0000
commit05b8bed896e5fe8c1841869e5d6e8e837e72c10a (patch)
tree77abf662b898321a61058fb0a0da603e336bcad9 /project2/config.h
parentAdds RDBMS table caching solution (diff)
downloadproject2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.tar.bz2
project2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.tar.xz
project2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.zip
The big reshuffle
Diffstat (limited to 'project2/config.h')
-rw-r--r--project2/config.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/project2/config.h b/project2/config.h
deleted file mode 100644
index 9f6cd5d..0000000
--- a/project2/config.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef CONFIG_H
-#define CONFIG_H
-
-#include <string>
-#include <libxml++/nodes/element.h>
-#include "intrusivePtrBase.h"
-#include <boost/function.hpp>
-
-class Configuration {
- public:
- class Platform : public virtual IntrusivePtrBase {
- public:
- typedef std::map<Glib::ustring, const Glib::ustring> Values;
-
- Platform(const xmlpp::Element * instanceRoot);
- const Glib::ustring & getValue(const Glib::ustring & key) const;
-
- private:
- Values values;
- };
- typedef boost::intrusive_ptr<const Platform> PlatformPtr;
-
- typedef std::map<Glib::ustring, PlatformPtr> Platforms;
-
- Configuration(const Glib::ustring & engineKeys);
- virtual ~Configuration() = 0;
-
- PlatformPtr getCurrentConfig() const;
-
- protected:
- virtual Glib::ustring resolveCurrentConfig() const = 0;
- void load() const;
-
- private:
- virtual void loadEngineSection(const xmlpp::Element *) const = 0;
-
- mutable bool loaded;
- mutable Platforms platforms;
- const Glib::ustring engineKeys;
-};
-
-#endif
-