diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
| commit | ac517a2b7625e0aa0862679e961c6349f859ea3b (patch) | |
| tree | e3e27a6b9bd5e2be6150088495c91fc91786ad9d /src/old/tests/confpair.cpp | |
| parent | f8d4301e9fa4f3709258505941e37fab2eadadc6 (diff) | |
| parent | bd865cee5f89116c1f054cd0e5c275e97c2d0a9b (diff) | |
| download | libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.gz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.bz2 libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.xz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.zip | |
The reorg is being put in trunk, I think it's ready. Now we just get to find
out how many applications won't work anymore :)
Diffstat (limited to 'src/old/tests/confpair.cpp')
| -rw-r--r-- | src/old/tests/confpair.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/old/tests/confpair.cpp b/src/old/tests/confpair.cpp new file mode 100644 index 0000000..fb1b0d3 --- /dev/null +++ b/src/old/tests/confpair.cpp | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include "confpair.h" | ||
| 2 | #include <iostream> | ||
| 3 | |||
| 4 | using namespace std; | ||
| 5 | |||
| 6 | int main() | ||
| 7 | { | ||
| 8 | ConfPair<float> p1("DebugMode"); | ||
| 9 | p1.value() = 12; | ||
| 10 | cout << p1.value() << "\n"; | ||
| 11 | p1.value() = 55; | ||
| 12 | cout << p1.value() << "\n"; | ||
| 13 | |||
| 14 | ConfPairBase &p = p1; | ||
| 15 | |||
| 16 | p = "33.12"; | ||
| 17 | cout << p.getAsString(); | ||
| 18 | } | ||
| 19 | |||
