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

Method TestReadFile

IO/XML/vtkXMLFileReadTester.cxx:33–52  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31
32//------------------------------------------------------------------------------
33int vtkXMLFileReadTester::TestReadFile()
34{
35 if (!this->FileName)
36 {
37 return 0;
38 }
39
40 vtksys::ifstream inFile(this->FileName);
41 if (!inFile)
42 {
43 return 0;
44 }
45
46 this->SetStream(&inFile);
47 this->Done = 0;
48
49 this->Parse();
50
51 return this->Done ? 1 : 0;
52}
53
54//------------------------------------------------------------------------------
55void vtkXMLFileReadTester::StartElement(const char* name, const char** atts)

Callers 2

ReadOutputTypeMethod · 0.45
CanReadFileMethod · 0.45

Calls 2

SetStreamMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected