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

Method StartElement

IO/XML/vtkXMLFileReadTester.cxx:55–72  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

53
54//------------------------------------------------------------------------------
55void vtkXMLFileReadTester::StartElement(const char* name, const char** atts)
56{
57 this->Done = 1;
58 if (strcmp(name, "VTKFile") == 0)
59 {
60 for (unsigned int i = 0; atts[i] && atts[i + 1]; i += 2)
61 {
62 if (strcmp(atts[i], "type") == 0)
63 {
64 this->SetFileDataType(atts[i + 1]);
65 }
66 else if (strcmp(atts[i], "version") == 0)
67 {
68 this->SetFileVersion(atts[i + 1]);
69 }
70 }
71 }
72}
73
74//------------------------------------------------------------------------------
75int vtkXMLFileReadTester::ParsingComplete()

Callers

nothing calls this directly

Calls 1

SetFileVersionMethod · 0.80

Tested by

no test coverage detected