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

Method parse

ThirdParty/xdmf3/vtkxdmf3/core/XdmfCoreReader.cpp:335–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335shared_ptr<XdmfItem >
336XdmfCoreReader::parse(const std::string & lightData) const
337{
338 mImpl->parse(lightData);
339 const xmlNodePtr currNode = xmlDocGetRootElement(mImpl->mDocument);
340 std::vector<shared_ptr<XdmfItem> > toReturn;
341 if(mImpl->mItemFactory->createItem((const char*)currNode->name,
342 std::map<std::string, std::string>(),
343 std::vector<shared_ptr<XdmfItem> >()) == NULL) {
344 toReturn = mImpl->read(currNode->children);
345 }
346 else {
347 toReturn = mImpl->read(currNode);
348 }
349 mImpl->closeFile();
350 return(toReturn[0]);
351}
352
353std::vector<shared_ptr<XdmfItem> >
354XdmfCoreReader::readItems(const std::string & filePath) const

Callers

nothing calls this directly

Calls 4

xmlDocGetRootElementFunction · 0.85
createItemMethod · 0.45
readMethod · 0.45
closeFileMethod · 0.45

Tested by

no test coverage detected