MCPcopy Create free account
hub / github.com/davisking/dlib / start_element

Method start_element

tools/imglab/src/convert_pascal_xml.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 virtual void start_element (
53 const unsigned long ,
54 const std::string& name,
55 const dlib::attribute_list&
56 )
57 {
58 if (ts.size() == 0 && name != "annotation")
59 {
60 std::ostringstream sout;
61 sout << "Invalid XML document. Root tag must be <annotation>. Found <" << name << "> instead.";
62 throw dlib::error(sout.str());
63 }
64
65
66 ts.push_back(name);
67 }
68
69 virtual void end_element (
70 const unsigned long ,

Callers

nothing calls this directly

Calls 4

errorClass · 0.85
sizeMethod · 0.45
strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected