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

Method read

Engine/source/persistence/taml/xml/tamlXmlReader.cpp:33–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31//-----------------------------------------------------------------------------
32
33SimObject* TamlXmlReader::read( FileStream& stream )
34{
35 // Debug Profiling.
36 PROFILE_SCOPE(TamlXmlReader_Read);
37
38 // Create document.
39 VfsXMLDocument xmlDocument;
40
41 // Load document from stream.
42 if ( !xmlDocument.LoadFile(stream) )
43 {
44 // Warn!
45 Con::warnf("Taml: Could not load Taml XML file from stream.");
46 return NULL;
47 }
48
49 // Parse root element.
50 SimObject* pSimObject = parseElement( xmlDocument.RootElement() );
51
52 // Reset parse.
53 resetParse();
54
55 return pSimObject;
56}
57
58//-----------------------------------------------------------------------------
59

Callers

nothing calls this directly

Calls 2

warnfFunction · 0.50
LoadFileMethod · 0.45

Tested by

no test coverage detected