MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / read

Method read

src/Base/Reader.cpp:196–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool Base::XMLReader::read()
197{
198 ReadType = None;
199
200 try {
201 parser->parseNext(token);
202 }
203 catch (const XMLException& toCatch) {
204
205 char* message = XMLString::transcode(toCatch.getMessage());
206 std::string what = message;
207 XMLString::release(&message);
208 throw Base::XMLBaseException(what);
209 }
210 catch (const SAXParseException& toCatch) {
211
212 char* message = XMLString::transcode(toCatch.getMessage());
213 std::string what = message;
214 XMLString::release(&message);
215 throw Base::XMLParseException(what);
216 }
217 catch (...) {
218 throw Base::XMLBaseException("Unexpected XML exception");
219 }
220 return true;
221}
222
223void Base::XMLReader::readElement(const char* ElementName)
224{

Callers 15

check_line_endingsFunction · 0.45
check_tabsFunction · 0.45
generate_markdown_reportFunction · 0.45
emit_problem_matchersFunction · 0.45
read_fileFunction · 0.45
generate_markdown_reportFunction · 0.45
parse_pylint_outputFunction · 0.45
read_file_contentsFunction · 0.45
dumpPropertyContentMethod · 0.45
readStringMethod · 0.45
readBytesMethod · 0.45

Calls 4

readFunction · 0.50
getMessageMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected