From 469bbcf0701e1eb8a6670c23145b0da87357e178 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 25 Mar 2012 20:00:08 +0000 Subject: Code is all reorganized. We're about ready to release. I should write up a little explenation of the arrangement. --- src/stable/tafwriter.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/stable/tafwriter.h (limited to 'src/stable/tafwriter.h') 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 @@ +/* + * Copyright (C) 2007-2011 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#ifndef BU_TAF_WRITER_H +#define BU_TAF_WRITER_H + +#include + +#include "bu/string.h" + +namespace Bu +{ + class Stream; + class TafNode; + class TafGroup; + class TafProperty; + class TafComment; + + /** + * + *@ingroup Taf + */ + class TafWriter + { + public: + TafWriter( Bu::Stream &sOut ); + virtual ~TafWriter(); + + void writeGroup( const Bu::TafGroup *pRoot ); + + private: + void writeProperty( const Bu::TafProperty *pProp ); + void writeComment( const Bu::TafComment *pComment ); + void writeString( const Bu::String &str ); + void ident(); + Bu::Stream &sOut; + int iDepth; + }; +} + +#endif -- cgit v1.2.3