VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkExodusIIReaderParser Class Reference

internal parser used by vtkExodusIIReader. More...

#include <vtkExodusIIReaderParser.h>

Inheritance diagram for vtkExodusIIReaderParser:
[legend]
Collaboration diagram for vtkExodusIIReaderParser:
[legend]

List of all members.

Public Types

typedef vtkXMLParser Superclass
- Public Types inherited from vtkXMLParser
- Public Types inherited from vtkObject

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void Go (const char *filename)
bool HasInformationAboutBlock (int id)
vtkstd::string GetBlockName (int id)
virtual vtkMutableDirectedGraphGetSIL ()
- Public Member Functions inherited from vtkXMLParser
virtual int Parse ()
virtual void SetStream (istream *)
virtual istream * GetStream ()
long TellG ()
void SeekG (long position)
virtual int Parse (const char *inputString)
virtual int Parse (const char *inputString, unsigned int length)
virtual int InitializeParser ()
virtual int ParseChunk (const char *inputString, unsigned int length)
virtual int CleanupParser ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetIgnoreCharacterData (int)
virtual int GetIgnoreCharacterData ()
virtual void SetEncoding (const char *)
virtual char * GetEncoding ()
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkExodusIIReaderParserNew ()
static int IsTypeOf (const char *type)
static vtkExodusIIReaderParserSafeDownCast (vtkObject *o)

Protected Member Functions

virtual void StartElement (const char *tagName, const char **attrs)
virtual void EndElement (const char *tagName)
void FinishedParsing ()
const char * GetValue (const char *attr, const char **attrs)
vtkIdType AddVertexToSIL (const char *name)
vtkIdType AddChildEdgeToSIL (vtkIdType src, vtkIdType dst)
vtkIdType AddCrossEdgeToSIL (vtkIdType src, vtkIdType dst)
vtkIdType GetPartVertex (const char *part_number_instance_string)
- Protected Member Functions inherited from vtkXMLParser
 vtkXMLParser ()
 ~vtkXMLParser ()
virtual int CreateParser ()
virtual int ParseXML ()
virtual int ParsingComplete ()
virtual void CharacterDataHandler (const char *data, int length)
virtual void ReportStrayAttribute (const char *element, const char *attr, const char *value)
virtual void ReportMissingAttribute (const char *element, const char *attr)
virtual void ReportBadAttribute (const char *element, const char *attr, const char *value)
virtual void ReportUnknownElement (const char *element)
virtual void ReportXmlParseError ()
unsigned long GetXMLByteIndex ()
virtual int ParseBuffer (const char *buffer, unsigned int count)
int ParseBuffer (const char *buffer)
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkstd::map< int, vtkIdTypeBlockID_To_VertexID
vtkstd::map< int, vtkstd::string > BlockID_To_MaterialName
vtkstd::map< vtkstd::string,
vtkIdType
MaterialName_To_VertexID
vtkstd::map< vtkIdType,
vtkstd::string > 
PartVertexID_To_Descriptions
vtkstd::map< vtkIdType,
vtkstd::string > 
MaterialSpecifications
vtkstd::map< vtkstd::string,
vtkIdType
Part_To_VertexID
vtkstd::map< int, vtkstd::string > BlockID_To_Part
vtkMutableDirectedGraphSIL
vtkSmartPointer< vtkStringArrayNamesArray
vtkSmartPointer
< vtkUnsignedCharArray
CrossEdgesArray
vtkstd::string BlockPartNumberString
vtkIdType RootVertex
vtkIdType BlocksVertex
vtkIdType AssembliesVertex
vtkIdType MaterialsVertex
vtkstd::vector< vtkIdTypeCurrentVertex
bool InBlocks
bool InMaterialAssignments
- Protected Attributes inherited from vtkXMLParser
istream * Stream
char * FileName
char * Encoding
int ParseError
const char * InputString
int InputStringLength
void * Parser
int IgnoreCharacterData
- Protected Attributes inherited from vtkObject
unsigned char Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
vtkWeakPointerBase ** WeakPointers
void GetBlockIds (vtkstd::set< int > &blockIdsSet)
 vtkExodusIIReaderParser ()
 ~vtkExodusIIReaderParser ()

Additional Inherited Members

- Static Protected Member Functions inherited from vtkXMLParser
static int IsSpace (char c)

Detailed Description

internal parser used by vtkExodusIIReader.

vtkExodusIIReaderParser is an internal XML parser used by vtkExodusIIReader. This is not for public use.

Definition at line 38 of file vtkExodusIIReaderParser.h.


Member Typedef Documentation

Reimplemented from vtkXMLParser.

Definition at line 42 of file vtkExodusIIReaderParser.h.


Constructor & Destructor Documentation

vtkExodusIIReaderParser::vtkExodusIIReaderParser ( )
protected

Fills up the blockIdsSet with the block ids referred to by the XML. This is valid only after Go().

vtkExodusIIReaderParser::~vtkExodusIIReaderParser ( )
protected

Fills up the blockIdsSet with the block ids referred to by the XML. This is valid only after Go().


Member Function Documentation

static vtkExodusIIReaderParser* vtkExodusIIReaderParser::New ( )
static

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkXMLParser.

virtual const char* vtkExodusIIReaderParser::GetClassName ( )
virtual

Reimplemented from vtkXMLParser.

static int vtkExodusIIReaderParser::IsTypeOf ( const char *  name)
static

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkXMLParser.

virtual int vtkExodusIIReaderParser::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkXMLParser.

static vtkExodusIIReaderParser* vtkExodusIIReaderParser::SafeDownCast ( vtkObject o)
static

Reimplemented from vtkXMLParser.

void vtkExodusIIReaderParser::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkXMLParser.

virtual vtkMutableDirectedGraph* vtkExodusIIReaderParser::GetSIL ( )
virtual

Returns the SIL. This is valid only after Go().

void vtkExodusIIReaderParser::Go ( const char *  filename)

Trigger parsing of the XML file.

bool vtkExodusIIReaderParser::HasInformationAboutBlock ( int  id)
inline

Definition at line 55 of file vtkExodusIIReaderParser.h.

vtkstd::string vtkExodusIIReaderParser::GetBlockName ( int  id)

Given a block "id" return the name as determined from the xml. This is valid only after Go().

void vtkExodusIIReaderParser::GetBlockIds ( vtkstd::set< int > &  blockIdsSet)
inline

Fills up the blockIdsSet with the block ids referred to by the XML. This is valid only after Go().

Definition at line 67 of file vtkExodusIIReaderParser.h.

virtual void vtkExodusIIReaderParser::StartElement ( const char *  tagName,
const char **  attrs 
)
protectedvirtual

Reimplemented from vtkXMLParser.

virtual void vtkExodusIIReaderParser::EndElement ( const char *  tagName)
protectedvirtual

Reimplemented from vtkXMLParser.

void vtkExodusIIReaderParser::FinishedParsing ( )
protected
const char* vtkExodusIIReaderParser::GetValue ( const char *  attr,
const char **  attrs 
)
inlineprotected

Definition at line 87 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::AddVertexToSIL ( const char *  name)
protected
vtkIdType vtkExodusIIReaderParser::AddChildEdgeToSIL ( vtkIdType  src,
vtkIdType  dst 
)
protected
vtkIdType vtkExodusIIReaderParser::AddCrossEdgeToSIL ( vtkIdType  src,
vtkIdType  dst 
)
protected
vtkIdType vtkExodusIIReaderParser::GetPartVertex ( const char *  part_number_instance_string)
protected

Returns the vertex id for the "part" with given part_number_instance_string formed as "{part-number} Instance: {part-instance}"


Member Data Documentation

vtkstd::map<int, vtkIdType> vtkExodusIIReaderParser::BlockID_To_VertexID
protected

Definition at line 121 of file vtkExodusIIReaderParser.h.

vtkstd::map<int, vtkstd::string> vtkExodusIIReaderParser::BlockID_To_MaterialName
protected

Definition at line 125 of file vtkExodusIIReaderParser.h.

vtkstd::map<vtkstd::string, vtkIdType> vtkExodusIIReaderParser::MaterialName_To_VertexID
protected

Definition at line 129 of file vtkExodusIIReaderParser.h.

vtkstd::map<vtkIdType, vtkstd::string> vtkExodusIIReaderParser::PartVertexID_To_Descriptions
protected

Definition at line 131 of file vtkExodusIIReaderParser.h.

vtkstd::map<vtkIdType, vtkstd::string> vtkExodusIIReaderParser::MaterialSpecifications
protected

Definition at line 137 of file vtkExodusIIReaderParser.h.

vtkstd::map<vtkstd::string, vtkIdType> vtkExodusIIReaderParser::Part_To_VertexID
protected

Definition at line 141 of file vtkExodusIIReaderParser.h.

vtkstd::map<int, vtkstd::string> vtkExodusIIReaderParser::BlockID_To_Part
protected

Definition at line 144 of file vtkExodusIIReaderParser.h.

vtkMutableDirectedGraph* vtkExodusIIReaderParser::SIL
protected

Definition at line 146 of file vtkExodusIIReaderParser.h.

vtkSmartPointer<vtkStringArray> vtkExodusIIReaderParser::NamesArray
protected

Definition at line 147 of file vtkExodusIIReaderParser.h.

vtkSmartPointer<vtkUnsignedCharArray> vtkExodusIIReaderParser::CrossEdgesArray
protected

Definition at line 148 of file vtkExodusIIReaderParser.h.

vtkstd::string vtkExodusIIReaderParser::BlockPartNumberString
protected

Definition at line 150 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::RootVertex
protected

Definition at line 152 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::BlocksVertex
protected

Definition at line 153 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::AssembliesVertex
protected

Definition at line 154 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::MaterialsVertex
protected

Definition at line 155 of file vtkExodusIIReaderParser.h.

vtkstd::vector<vtkIdType> vtkExodusIIReaderParser::CurrentVertex
protected

Definition at line 156 of file vtkExodusIIReaderParser.h.

bool vtkExodusIIReaderParser::InBlocks
protected

Definition at line 158 of file vtkExodusIIReaderParser.h.

bool vtkExodusIIReaderParser::InMaterialAssignments
protected

Definition at line 159 of file vtkExodusIIReaderParser.h.


The documentation for this class was generated from the following file: