mirror of https://github.com/AxioDL/tinyxml2.git
removed confusing getter/setter. cleaned up comments.
This commit is contained in:
parent
6e0e38b372
commit
7b1b86a1c9
|
@ -1378,14 +1378,6 @@ public:
|
||||||
*/
|
*/
|
||||||
const int CStrSize()const{ return buffer.Size(); }
|
const int CStrSize()const{ return buffer.Size(); }
|
||||||
|
|
||||||
/**
|
|
||||||
Set printer to compact mode, for printing without '\n' and space,
|
|
||||||
let output file smaller.
|
|
||||||
*/
|
|
||||||
void SetCompactMode( bool on ){ compactMode = on; }
|
|
||||||
bool IsCompactMode()const{ return compactMode; };
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SealElement();
|
void SealElement();
|
||||||
void PrintSpace( int depth );
|
void PrintSpace( int depth );
|
||||||
|
|
14
xmltest.cpp
14
xmltest.cpp
|
@ -248,10 +248,16 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
||||||
|
|
||||||
doc->Print();
|
doc->Print();
|
||||||
|
|
||||||
XMLPrinter streamer;
|
{
|
||||||
doc->Print( &streamer );
|
XMLPrinter streamer;
|
||||||
printf( "%s", streamer.CStr() );
|
doc->Print( &streamer );
|
||||||
|
printf( "%s", streamer.CStr() );
|
||||||
|
}
|
||||||
|
{
|
||||||
|
XMLPrinter streamer( 0, true );
|
||||||
|
doc->Print( &streamer );
|
||||||
|
XMLTest( "Compact mode", "<element><sub attrib=\"1\"/><sub/></element>", streamer.CStr(), false );
|
||||||
|
}
|
||||||
delete doc;
|
delete doc;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue