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  virtual void PrintSelf(ostream &os, vtkIndent indent);
37 
38 
39 
42 
43 protected:
45  virtual ~vtkLSDynaSummaryParser() { };
46 
47  virtual void StartElement(const char* name, const char** atts);
48  virtual void EndElement(const char* name);
49  virtual void CharacterDataHandler(const char* data, int length);
50 
52  int PartId;
55  int InPart;
56  int InDyna;
57  int InName;
58 
59 private:
60  vtkLSDynaSummaryParser( const vtkLSDynaSummaryParser& ) VTK_DELETE_FUNCTION;
61  void operator = ( const vtkLSDynaSummaryParser& ) VTK_DELETE_FUNCTION;
62 };
63 
64 #endif //vtkLSDynaReader_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
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)
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();.