VTK: IO/LSDyna/vtkLSDynaSummaryParser.h Source File

| VTK 9.3.1

vtkLSDynaSummaryParser.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 #ifndef vtkLSDynaSummaryParser_h
12 #define vtkLSDynaSummaryParser_h
13
14 #include "vtkIOLSDynaModule.h" // For export macro
15 #include "vtkStdString.h" //needed for vtkStdString
16 #include "vtkXMLParser.h"
17
18 VTK_ABI_NAMESPACE_BEGIN
19 class LSDynaMetaData;
20 class VTKIOLSDYNA_EXPORT vtkLSDynaSummaryParser : public vtkXMLParser
21 {
22 public:
23 vtkTypeMacro(vtkLSDynaSummaryParser, vtkXMLParser);
24 static vtkLSDynaSummaryParser* New();
25 void PrintSelf(ostream& os, vtkIndent indent) override;
26
28 LSDynaMetaData* MetaData;
29
30 protected:
31 vtkLSDynaSummaryParser();
32 ~vtkLSDynaSummaryParser() override = default;
33
34 void StartElement(const char* name, const char** atts) override;
35 void EndElement(const char* name) override;
36 void CharacterDataHandler(const char* data, int length) override;
37
38 vtkStdString PartName;
39 int PartId;
40 int PartStatus;
41 int PartMaterial;
42 int InPart;
43 int InDyna;
44 int InName;
45
46 private:
47 vtkLSDynaSummaryParser(const vtkLSDynaSummaryParser&) = delete;
48 void operator=(const vtkLSDynaSummaryParser&) = delete;
49 };
50
51 VTK_ABI_NAMESPACE_END
52 #endif // vtkLSDynaReader_h
LSDynaMetaData
Definition: LSDynaMetaData.h:24
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkLSDynaSummaryParser
This is a helper class used by vtkLSDynaReader to read XML files.
Definition: vtkLSDynaSummaryParser.h:21
vtkLSDynaSummaryParser::PartId
int PartId
Definition: vtkLSDynaSummaryParser.h:39
vtkLSDynaSummaryParser::InPart
int InPart
Definition: vtkLSDynaSummaryParser.h:42
vtkLSDynaSummaryParser::PartStatus
int PartStatus
Definition: vtkLSDynaSummaryParser.h:40
vtkLSDynaSummaryParser::PartName
vtkStdString PartName
Definition: vtkLSDynaSummaryParser.h:38
vtkLSDynaSummaryParser::~vtkLSDynaSummaryParser
~vtkLSDynaSummaryParser() override=default
vtkLSDynaSummaryParser::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLSDynaSummaryParser::vtkLSDynaSummaryParser
vtkLSDynaSummaryParser()
vtkLSDynaSummaryParser::PartMaterial
int PartMaterial
Definition: vtkLSDynaSummaryParser.h:41
vtkLSDynaSummaryParser::InDyna
int InDyna
Definition: vtkLSDynaSummaryParser.h:43
vtkLSDynaSummaryParser::StartElement
void StartElement(const char *name, const char **atts) override
vtkLSDynaSummaryParser::EndElement
void EndElement(const char *name) override
vtkLSDynaSummaryParser::MetaData
LSDynaMetaData * MetaData
Must be set before calling Parse();.
Definition: vtkLSDynaSummaryParser.h:28
vtkLSDynaSummaryParser::New
static vtkLSDynaSummaryParser * New()
vtkLSDynaSummaryParser::InName
int InName
Definition: vtkLSDynaSummaryParser.h:44
vtkLSDynaSummaryParser::CharacterDataHandler
void CharacterDataHandler(const char *data, int length) override
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
vtkXMLParser
Parse XML to handle element tags and attributes.
Definition: vtkXMLParser.h:29
vtkX3D::length
@ length
Definition: vtkX3D.h:393
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkStdString.h
vtkXMLParser.h