MCPcopy Create free account
hub / github.com/Kitware/VTK / Parse

Method Parse

Common/DataModel/vtkDataAssembly.cxx:368–382  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

366
367//------------------------------------------------------------------------------
368bool vtkDataAssembly::vtkInternals::Parse(const char* xmlcontents, vtkDataAssembly* self)
369{
370 auto& doc = this->Document;
371 auto result = doc.load_string(xmlcontents);
372 if (!result)
373 {
374 vtkErrorWithObjectMacro(self,
375 "Invalid xml provided. \n"
376 << " Error description: " << result.description() << "\n"
377 << " Error offset: " << result.offset << " (error at [..." << (xmlcontents + result.offset)
378 << "])");
379 return false;
380 }
381 return this->ParseDocument(self);
382}
383
384//============================================================================
385vtkStandardNewMacro(vtkDataAssembly);

Callers 3

InitializeMethod · 0.45
InitializeFromXMLMethod · 0.45
DeepCopyMethod · 0.45

Calls 3

load_stringMethod · 0.80
ParseDocumentMethod · 0.80
descriptionMethod · 0.45

Tested by

no test coverage detected