MCPcopy Create free account
hub / github.com/LAStools/LAStools / open

Method open

src/validate_xml_writer.cpp:38–51  ·  view source on GitHub ↗

Initializes the writer and opens the root element/container identified by the given key

Source from the content-addressed store, hash-verified

36
37/// Initializes the writer and opens the root element/container identified by the given key
38BOOL ValidateXmlWriter::open(const std::string& key) {
39 if (file == nullptr) return FALSE;
40
41 stream.str("");
42 stream.clear();
43
44 indent = 0;
45 stream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
46 printIndent(stream);
47 stream << "<" << key << ">\n";
48 indent++;
49
50 return TRUE;
51}
52
53/// Begins a new structured section identified by the given key and makes it the current write context
54BOOL ValidateXmlWriter::begin(const std::string& key, ContainerType type) {

Callers 11

mainFunction · 0.45
mainFunction · 0.45
open_report_outputFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected