diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-10-16 12:59:45 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-10-16 12:59:45 +0000 |
commit | 96b07a22f5392f5d7f821f5743deb3d64bd94e89 (patch) | |
tree | f8610916735e2bc5304031168f724cde7d909653 /src/tafproperty.h | |
parent | 835c3420326a3a3a94baa8690bf09941182d29b0 (diff) | |
download | libbu++-96b07a22f5392f5d7f821f5743deb3d64bd94e89.tar.gz libbu++-96b07a22f5392f5d7f821f5743deb3d64bd94e89.tar.bz2 libbu++-96b07a22f5392f5d7f821f5743deb3d64bd94e89.tar.xz libbu++-96b07a22f5392f5d7f821f5743deb3d64bd94e89.zip |
Although this looks like a load of code changes, this represents no functional
change to the Taf system. Really all that's happened is I've broken out the
core taf data types into seperate files, and gone ahead and created a helpful
new header file ("taf.h") that will include the entire taf system, including
the reader and writer for you.
This means that a lot of programs will start complaining, but fortunately,
there's an easy solution, if it complains about taf, make sure to include taf.h
at the top, instead of other taf files and you'll be set.
The next set of changes will add lots of helpers to the taf system and change
the reader to read non-const structures, i.e. I'll actually add editing support
to created taf structures.
Diffstat (limited to 'src/tafproperty.h')
-rw-r--r-- | src/tafproperty.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/tafproperty.h b/src/tafproperty.h new file mode 100644 index 0000000..3589a58 --- /dev/null +++ b/src/tafproperty.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2008 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #ifndef BU_TAF_PROPERTY_H | ||
9 | #define BU_TAF_PROPERTY_H | ||
10 | |||
11 | #include <stdint.h> | ||
12 | #include "bu/tafnode.h" | ||
13 | |||
14 | namespace Bu | ||
15 | { | ||
16 | /** | ||
17 | * | ||
18 | *@ingroup Taf | ||
19 | */ | ||
20 | class TafProperty : public TafNode | ||
21 | { | ||
22 | public: | ||
23 | TafProperty( const Bu::FString &sName, const Bu::FString &sValue ); | ||
24 | virtual ~TafProperty(); | ||
25 | |||
26 | const Bu::FString &getName() const; | ||
27 | const Bu::FString &getValue() const; | ||
28 | |||
29 | private: | ||
30 | Bu::FString sName; | ||
31 | Bu::FString sValue; | ||
32 | }; | ||
33 | } | ||
34 | |||
35 | #endif | ||