Go to the documentation of this file.
22 #ifndef vtkExodusIIReaderParser_h
23 #define vtkExodusIIReaderParser_h
29 #include <vtksys/ios/sstream>
52 void Go(
const char* filename);
58 return (this->BlockID_To_VertexID.find(
id) != this->BlockID_To_VertexID.end());
70 std::map<int, vtkIdType>::iterator iter;
71 for (iter = this->BlockID_To_VertexID.begin();
72 iter != this->BlockID_To_VertexID.end();
75 blockIdsSet.insert(iter->first);
84 virtual void StartElement(
const char* tagName,
const char** attrs);
88 const char*
GetValue(
const char* attr,
const char** attrs)
91 for (i=0;attrs[i];i+=2)
93 const char*
name=strrchr(attrs[i],
':');
102 if (strcmp(attr,
name)==0)
internal parser used by vtkExodusIIReader.
#define vtkGetObjectMacro(name, type)
std::vector< vtkIdType > CurrentVertex
An editable directed graph.
vtkSmartPointer< vtkStringArray > NamesArray
std::string BlockPartNumberString
Parse XML to handle element tags and attributes.
std::map< int, vtkIdType > BlockID_To_VertexID
vtkIdType AddChildEdgeToSIL(vtkIdType src, vtkIdType dst)
vtkIdType MaterialsVertex
dynamic, self-adjusting array of unsigned char
#define vtkTypeMacro(thisClass, superclass)
vtkIdType GetPartVertex(const char *part_number_instance_string)
void Go(const char *filename)
static vtkExodusIIReaderParser * New()
vtkIdType AddCrossEdgeToSIL(vtkIdType src, vtkIdType dst)
bool HasInformationAboutBlock(int id)
vtkSmartPointer< vtkUnsignedCharArray > CrossEdgesArray
vtkMutableDirectedGraph * SIL
GLuint const GLchar * name
std::map< int, std::string > BlockID_To_MaterialName
std::map< vtkIdType, std::string > PartVertexID_To_Descriptions
virtual void EndElement(const char *tagName)
const char * GetValue(const char *attr, const char **attrs)
bool InMaterialAssignments
a simple class to control print indentation
virtual void StartElement(const char *tagName, const char **attrs)
std::map< std::string, vtkIdType > MaterialName_To_VertexID
std::string GetBlockName(int id)
#define VTKIOEXODUS_EXPORT
std::map< std::string, vtkIdType > Part_To_VertexID
std::map< int, std::string > BlockID_To_Part
vtkExodusIIReaderParser()
void PrintSelf(ostream &os, vtkIndent indent)
void GetBlockIds(std::set< int > &blockIdsSet)
vtkIdType AddVertexToSIL(const char *name)
vtkIdType AssembliesVertex
a vtkAbstractArray subclass for strings
GLsizei const GLchar ** string
std::map< vtkIdType, std::string > MaterialSpecifications
~vtkExodusIIReaderParser()