VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkExodusIIReaderParser Class Reference

internal parser used by vtkExodusIIReader. More...

#include <vtkExodusIIReaderParser.h>

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

Public Types

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

Public Member Functions

virtual int IsA (const char *type)
 
vtkExodusIIReaderParserNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void Go (const char *filename)
 
bool HasInformationAboutBlock (int id)
 
std::string GetBlockName (int id)
 
virtual vtkMutableDirectedGraphGetSIL ()
 
- Public Member Functions inherited from vtkXMLParser
vtkXMLParserNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int Parse ()
 
virtual void SetStream (istream *)
 
virtual istream * GetStream ()
 
vtkTypeInt64 TellG ()
 
void SeekG (vtkTypeInt64 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
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(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 &)
 
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 (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkXMLParser
static int IsTypeOf (const char *type)
 
static vtkXMLParserSafeDownCast (vtkObjectBase *o)
 
static vtkXMLParserNew ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
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 ()
 
vtkTypeInt64 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 &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

std::map< int, vtkIdTypeBlockID_To_VertexID
 
std::map< int, std::string > BlockID_To_MaterialName
 
std::map< std::string, vtkIdTypeMaterialName_To_VertexID
 
std::map< vtkIdType, std::string > PartVertexID_To_Descriptions
 
std::map< vtkIdType, std::string > MaterialSpecifications
 
std::map< std::string, vtkIdTypePart_To_VertexID
 
std::map< int, std::string > BlockID_To_Part
 
vtkMutableDirectedGraphSIL
 
vtkSmartPointer< vtkStringArrayNamesArray
 
vtkSmartPointer< vtkUnsignedCharArrayCrossEdgesArray
 
std::string BlockPartNumberString
 
vtkIdType RootVertex
 
vtkIdType BlocksVertex
 
vtkIdType AssembliesVertex
 
vtkIdType MaterialsVertex
 
std::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
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
void GetBlockIds (std::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 39 of file vtkExodusIIReaderParser.h.

Member Typedef Documentation

Definition at line 43 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
static int vtkExodusIIReaderParser::IsTypeOf ( const char *  type)
static
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 ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkExodusIIReaderParser::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkXMLParser.

vtkExodusIIReaderParser* vtkExodusIIReaderParser::NewInstance ( ) const
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 vtkObject.

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 56 of file vtkExodusIIReaderParser.h.

std::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 ( std::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 68 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 88 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

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

Definition at line 122 of file vtkExodusIIReaderParser.h.

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

Definition at line 126 of file vtkExodusIIReaderParser.h.

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

Definition at line 130 of file vtkExodusIIReaderParser.h.

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

Definition at line 132 of file vtkExodusIIReaderParser.h.

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

Definition at line 138 of file vtkExodusIIReaderParser.h.

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

Definition at line 142 of file vtkExodusIIReaderParser.h.

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

Definition at line 145 of file vtkExodusIIReaderParser.h.

vtkMutableDirectedGraph* vtkExodusIIReaderParser::SIL
protected

Definition at line 147 of file vtkExodusIIReaderParser.h.

vtkSmartPointer<vtkStringArray> vtkExodusIIReaderParser::NamesArray
protected

Definition at line 148 of file vtkExodusIIReaderParser.h.

vtkSmartPointer<vtkUnsignedCharArray> vtkExodusIIReaderParser::CrossEdgesArray
protected

Definition at line 149 of file vtkExodusIIReaderParser.h.

std::string vtkExodusIIReaderParser::BlockPartNumberString
protected

Definition at line 151 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::RootVertex
protected

Definition at line 153 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::BlocksVertex
protected

Definition at line 154 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::AssembliesVertex
protected

Definition at line 155 of file vtkExodusIIReaderParser.h.

vtkIdType vtkExodusIIReaderParser::MaterialsVertex
protected

Definition at line 156 of file vtkExodusIIReaderParser.h.

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

Definition at line 157 of file vtkExodusIIReaderParser.h.

bool vtkExodusIIReaderParser::InBlocks
protected

Definition at line 159 of file vtkExodusIIReaderParser.h.

bool vtkExodusIIReaderParser::InMaterialAssignments
protected

Definition at line 160 of file vtkExodusIIReaderParser.h.


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