VTK
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 "vtkXMLParser.h"
28 #include "vtkStdString.h" //needed for vtkStdString
29 
30 class LSDynaMetaData;
31 class VTKIOLSDYNA_EXPORT vtkLSDynaSummaryParser : public vtkXMLParser
32 {
33 public:
35  static vtkLSDynaSummaryParser* New();
36  void PrintSelf(ostream &os, vtkIndent indent) override;
37 
38 
39 
42 
43 protected:
45  ~vtkLSDynaSummaryParser() override { };
46 
47  void StartElement(const char* name, const char** atts) override;
48  void EndElement(const char* name) override;
49  void CharacterDataHandler(const char* data, int length) override;
50 
52  int PartId;
55  int InPart;
56  int InDyna;
57  int InName;
58 
59 private:
61  void operator = ( const vtkLSDynaSummaryParser& ) = delete;
62 };
63 
64 #endif //vtkLSDynaReader_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:40
Parse XML to handle element tags and attributes.
Definition: vtkXMLParser.h:42
virtual void StartElement(const char *name, const char **atts)
virtual void CharacterDataHandler(const char *data, int length)
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
This is a helper class used by vtkLSDynaReader to read XML files.
virtual void EndElement(const char *name)
static vtkXMLParser * New()
LSDynaMetaData * MetaData
Must be set before calling Parse();.