summaryrefslogtreecommitdiff
path: root/src/tafwriter.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-11-07 22:30:49 +0000
committerMike Buland <eichlan@xagasoft.com>2007-11-07 22:30:49 +0000
commitef5e980ae9ab4ddb47e79783455b78de4b90366a (patch)
tree1c5b436737f4c56d73e95d2366f08a0eaf36af37 /src/tafwriter.cpp
parent72c44ec415ac3e2e4058a0104de28625101d5017 (diff)
downloadlibbu++-ef5e980ae9ab4ddb47e79783455b78de4b90366a.tar.gz
libbu++-ef5e980ae9ab4ddb47e79783455b78de4b90366a.tar.bz2
libbu++-ef5e980ae9ab4ddb47e79783455b78de4b90366a.tar.xz
libbu++-ef5e980ae9ab4ddb47e79783455b78de4b90366a.zip
Changed the way the Taf data is interpreted, anonymous properties now have no
name, but have a value, I did it the other way last time, and they were hard to find. I think I fixed the writer to work right too, but I haven't checked it yet.
Diffstat (limited to 'src/tafwriter.cpp')
-rw-r--r--src/tafwriter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp
index fe29490..b5690fc 100644
--- a/src/tafwriter.cpp
+++ b/src/tafwriter.cpp
@@ -49,12 +49,16 @@ void Bu::TafWriter::writeGroup( const Bu::TafGroup *pRoot )
49void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp ) 49void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp )
50{ 50{
51 ident(); 51 ident();
52 writeString( pProp->getName() ); 52 if( pProp->getName().getStr() != NULL && pProp->getName() != "" )
53 if( pProp->getValue().getStr() != NULL )
54 { 53 {
54 writeString( pProp->getName() );
55 sOut.write("=", 1 ); 55 sOut.write("=", 1 );
56 writeString( pProp->getValue() ); 56 writeString( pProp->getValue() );
57 } 57 }
58 else
59 {
60 writeString( pProp->getValue() );
61 }
58 sOut.write("\n", 1 ); 62 sOut.write("\n", 1 );
59} 63}
60 64