diff options
Diffstat (limited to 'src/stable/tafwriter.h')
-rw-r--r-- | src/stable/tafwriter.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/stable/tafwriter.h b/src/stable/tafwriter.h new file mode 100644 index 0000000..3fd71de --- /dev/null +++ b/src/stable/tafwriter.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2011 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_WRITER_H | ||
9 | #define BU_TAF_WRITER_H | ||
10 | |||
11 | #include <stdint.h> | ||
12 | |||
13 | #include "bu/string.h" | ||
14 | |||
15 | namespace Bu | ||
16 | { | ||
17 | class Stream; | ||
18 | class TafNode; | ||
19 | class TafGroup; | ||
20 | class TafProperty; | ||
21 | class TafComment; | ||
22 | |||
23 | /** | ||
24 | * | ||
25 | *@ingroup Taf | ||
26 | */ | ||
27 | class TafWriter | ||
28 | { | ||
29 | public: | ||
30 | TafWriter( Bu::Stream &sOut ); | ||
31 | virtual ~TafWriter(); | ||
32 | |||
33 | void writeGroup( const Bu::TafGroup *pRoot ); | ||
34 | |||
35 | private: | ||
36 | void writeProperty( const Bu::TafProperty *pProp ); | ||
37 | void writeComment( const Bu::TafComment *pComment ); | ||
38 | void writeString( const Bu::String &str ); | ||
39 | void ident(); | ||
40 | Bu::Stream &sOut; | ||
41 | int iDepth; | ||
42 | }; | ||
43 | } | ||
44 | |||
45 | #endif | ||