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

Method saveToString

Engine/source/console/SimXMLDocument.cpp:255–262  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

exportXMLMethod · 0.80

Calls 1

AcceptMethod · 0.80

Tested by

no test coverage detected