VTK  9.7.20261003
vtkXMLFileReadTester.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
11
12#ifndef vtkXMLFileReadTester_h
13#define vtkXMLFileReadTester_h
14
15#include "vtkIOXMLModule.h" // For export macro
16#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
17#include "vtkXMLParser.h"
18
19VTK_ABI_NAMESPACE_BEGIN
21{
22public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
26
32
34
38 vtkGetStringMacro(FileDataType);
40
42
46 vtkGetStringMacro(FileVersion);
48
49protected:
52
53 void StartElement(const char* name, const char** atts) override;
54 int ParsingComplete() override;
55 void ReportStrayAttribute(const char*, const char*, const char*) override {}
56 void ReportMissingAttribute(const char*, const char*) override {}
57 void ReportBadAttribute(const char*, const char*, const char*) override {}
58 void ReportUnknownElement(const char*) override {}
59 void ReportXmlParseError() override {}
60
63 int Done;
64
65 vtkSetStringMacro(FileDataType);
66 vtkSetStringMacro(FileVersion);
67
68private:
70 void operator=(const vtkXMLFileReadTester&) = delete;
71};
72
73VTK_ABI_NAMESPACE_END
74#endif
a simple class to control print indentation
Definition vtkIndent.h:108
int TestReadFile()
Try to read the file given by FileName.
static vtkXMLFileReadTester * New()
void ReportXmlParseError() override
void ReportStrayAttribute(const char *, const char *, const char *) override
void ReportUnknownElement(const char *) override
int ParsingComplete() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkXMLFileReadTester() override
void ReportBadAttribute(const char *, const char *, const char *) override
void StartElement(const char *name, const char **atts) override
void ReportMissingAttribute(const char *, const char *) override
#define VTK_MARSHALAUTO