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 =========================================================================*/
22 #ifndef vtkLSDynaSummaryParser_h
23 #define vtkLSDynaSummaryParser_h
24 
25 #include "vtkIOLSDynaModule.h" // For export macro
26 #include "vtkXMLParser.h"
27 #include "vtkStdString.h" //needed for vtkStdString
28 
29 class LSDynaMetaData;
31 {
32 public:
34  static vtkLSDynaSummaryParser* New();
35  virtual void PrintSelf(ostream &os, vtkIndent indent);
36 
37 
38 
40  LSDynaMetaData* MetaData;
41 
42 protected:
44  virtual ~vtkLSDynaSummaryParser() { };
45 
46  virtual void StartElement(const char* name, const char** atts);
47  virtual void EndElement(const char* name);
48  virtual void CharacterDataHandler(const char* data, int length);
49 
51  int PartId;
54  int InPart;
55  int InDyna;
56  int InName;
57 
58 private:
59  vtkLSDynaSummaryParser( const vtkLSDynaSummaryParser& ); // Not implemented.
60  void operator = ( const vtkLSDynaSummaryParser& ); // Not implemented.
61 };
62 
63 #endif //vtkLSDynaReader_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
Parse XML to handle element tags and attributes.
Definition: vtkXMLParser.h:41
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:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOLSDYNA_EXPORT
virtual void EndElement(const char *name)
static vtkXMLParser * New()
LSDynaMetaData * MetaData
Must be set before calling Parse();.