VTK  9.1.0
vtkLSDynaSummaryParser.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLSDynaSummaryParser.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
23#ifndef vtkLSDynaSummaryParser_h
24#define vtkLSDynaSummaryParser_h
25
26#include "vtkIOLSDynaModule.h" // For export macro
27#include "vtkStdString.h" //needed for vtkStdString
28#include "vtkXMLParser.h"
29
30class LSDynaMetaData;
31class VTKIOLSDYNA_EXPORT vtkLSDynaSummaryParser : public vtkXMLParser
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
40
41protected:
43 ~vtkLSDynaSummaryParser() override = default;
44
45 void StartElement(const char* name, const char** atts) override;
46 void EndElement(const char* name) override;
47 void CharacterDataHandler(const char* data, int length) override;
48
50 int PartId;
53 int InPart;
54 int InDyna;
55 int InName;
56
57private:
59 void operator=(const vtkLSDynaSummaryParser&) = delete;
60};
61
62#endif // vtkLSDynaReader_h
a simple class to control print indentation
Definition: vtkIndent.h:113
This is a helper class used by vtkLSDynaReader to read XML files.
~vtkLSDynaSummaryParser() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkLSDynaSummaryParser * New()
void StartElement(const char *name, const char **atts) override
void EndElement(const char *name) override
LSDynaMetaData * MetaData
Must be set before calling Parse();.
void CharacterDataHandler(const char *data, int length) override
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:105
Parse XML to handle element tags and attributes.
Definition: vtkXMLParser.h:40
@ length
Definition: vtkX3D.h:399
@ name
Definition: vtkX3D.h:225
@ data
Definition: vtkX3D.h:321