From 737b1aee54da9ff45a4fb6eb7e636eff9019128e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 21 Nov 2006 05:17:23 +0000 Subject: Adding a new config-system that should be easy to make derive from xml. Or just used in general. The base unit, the confpair is a template, so if things go right, you should be able to use this to store any kind of config data in a nice and easily accessable way. --- src/tests/confpair.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/tests/confpair.cpp (limited to 'src/tests') diff --git a/src/tests/confpair.cpp b/src/tests/confpair.cpp new file mode 100644 index 0000000..8e03730 --- /dev/null +++ b/src/tests/confpair.cpp @@ -0,0 +1,14 @@ +#include "confpair.h" +#include + +using namespace std; + +int main() +{ + ConfPair p1("DebugMode"); + p1.value() = true; + cout << p1.value() << "\n"; + p1.value() = false; + cout << p1.value() << "\n"; +} + -- cgit v1.2.3