MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / saveToString

Method saveToString

Engine/source/console/SimXMLDocument.cpp:253–260  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get true if file saves successfully to string. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

251// Get true if file saves successfully to string.
252// -----------------------------------------------------------------------------
253bool SimXMLDocument::saveToString(String& str)
254{
255 TiXmlPrinter printer;
256 bool ret = m_qDocument->Accept( &printer );
257 if (ret)
258 str = printer.CStr();
259 return ret;
260}
261
262DefineEngineMethod( SimXMLDocument, saveFile, bool, ( const char* fileName ),,
263 "@brief Save document to the given file name.\n\n"

Callers 1

exportXMLMethod · 0.80

Calls 2

AcceptMethod · 0.80
CStrMethod · 0.80

Tested by

no test coverage detected