Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkPVXMLElement Class Reference

#include <vtkPVXMLElement.h>

Collaboration diagram for vtkPVXMLElement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkPVXMLElement, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
const char * GetAttribute (const char *name)
vtkPVXMLElementGetParent ()
unsigned int GetNumberOfNestedElements ()
vtkPVXMLElementGetNestedElement (unsigned int index)
vtkPVXMLElementFindNestedElement (const char *id)
vtkPVXMLElementLookupElement (const char *id)
virtual char * GetName ()
virtual char * GetId ()
int GetScalarAttribute (const char *name, int *value)
int GetScalarAttribute (const char *name, float *value)
int GetScalarAttribute (const char *name, double *value)
int GetVectorAttribute (const char *name, int length, int *value)
int GetVectorAttribute (const char *name, int length, float *value)
int GetVectorAttribute (const char *name, int length, double *value)

Static Public Member Functions

vtkPVXMLElementNew ()

Protected Member Functions

 vtkPVXMLElement ()
 ~vtkPVXMLElement ()
virtual void SetName (const char *)
virtual void SetId (const char *)
void ReadXMLAttributes (const char **atts)
void AddNestedElement (vtkPVXMLElement *element)
void AddCharacterData (const char *data, int length)
void PrintXML (ostream &os, vtkIndent indent)
vtkPVXMLElementLookupElementInScope (const char *id)
vtkPVXMLElementLookupElementUpScope (const char *id)
void SetParent (vtkPVXMLElement *parent)

Protected Attributes

char * Name
char * Id
char ** AttributeNames
char ** AttributeValues
unsigned int NumberOfAttributes
unsigned int AttributesSize
unsigned int NumberOfNestedElements
unsigned int NestedElementsSize
vtkPVXMLElement ** NestedElements
vtkPVXMLElementParent

Friends

class vtkPVXMLParser

Detailed Description

This is used by vtkPVXMLParser to represent an XML document starting at the root element.

Definition at line 28 of file vtkPVXMLElement.h.


Constructor & Destructor Documentation

vtkPVXMLElement::vtkPVXMLElement  )  [protected]
 

vtkPVXMLElement::~vtkPVXMLElement  )  [protected]
 


Member Function Documentation

vtkPVXMLElement::vtkTypeRevisionMacro vtkPVXMLElement  ,
vtkObject 
 

void vtkPVXMLElement::PrintSelf ostream &  os,
vtkIndent  indent
 

vtkPVXMLElement* vtkPVXMLElement::New  )  [static]
 

virtual char* vtkPVXMLElement::GetName  )  [virtual]
 

Get the name of the element. This is its XML tag.

virtual char* vtkPVXMLElement::GetId  )  [virtual]
 

Get the id of the element.

const char* vtkPVXMLElement::GetAttribute const char *  name  ) 
 

Get the attribute with the given name. If it doesn't exist, returns 0.

int vtkPVXMLElement::GetScalarAttribute const char *  name,
int *  value
 

Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted.

int vtkPVXMLElement::GetScalarAttribute const char *  name,
float *  value
 

Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted.

int vtkPVXMLElement::GetScalarAttribute const char *  name,
double *  value
 

Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted.

int vtkPVXMLElement::GetVectorAttribute const char *  name,
int  length,
int *  value
 

Get the attribute with the given name and converted to a scalar value. Returns length of vector read.

int vtkPVXMLElement::GetVectorAttribute const char *  name,
int  length,
float *  value
 

Get the attribute with the given name and converted to a scalar value. Returns length of vector read.

int vtkPVXMLElement::GetVectorAttribute const char *  name,
int  length,
double *  value
 

Get the attribute with the given name and converted to a scalar value. Returns length of vector read.

vtkPVXMLElement* vtkPVXMLElement::GetParent  ) 
 

Get the parent of this element.

unsigned int vtkPVXMLElement::GetNumberOfNestedElements  ) 
 

Get the number of elements nested in this one.

vtkPVXMLElement* vtkPVXMLElement::GetNestedElement unsigned int  index  ) 
 

Get the element nested in this one at the given index.

vtkPVXMLElement* vtkPVXMLElement::FindNestedElement const char *  id  ) 
 

Find a nested element with the given id.

vtkPVXMLElement* vtkPVXMLElement::LookupElement const char *  id  ) 
 

Lookup the element with the given id, starting at this scope.

virtual void vtkPVXMLElement::SetName const char *   )  [protected, virtual]
 

virtual void vtkPVXMLElement::SetId const char *   )  [protected, virtual]
 

void vtkPVXMLElement::ReadXMLAttributes const char **  atts  )  [protected]
 

void vtkPVXMLElement::AddNestedElement vtkPVXMLElement element  )  [protected]
 

void vtkPVXMLElement::AddCharacterData const char *  data,
int  length
[protected]
 

void vtkPVXMLElement::PrintXML ostream &  os,
vtkIndent  indent
[protected]
 

vtkPVXMLElement* vtkPVXMLElement::LookupElementInScope const char *  id  )  [protected]
 

vtkPVXMLElement* vtkPVXMLElement::LookupElementUpScope const char *  id  )  [protected]
 

void vtkPVXMLElement::SetParent vtkPVXMLElement parent  )  [protected]
 


Friends And Related Function Documentation

friend class vtkPVXMLParser [friend]
 

Definition at line 116 of file vtkPVXMLElement.h.


Member Data Documentation

char* vtkPVXMLElement::Name [protected]
 

Definition at line 84 of file vtkPVXMLElement.h.

char* vtkPVXMLElement::Id [protected]
 

Definition at line 85 of file vtkPVXMLElement.h.

char** vtkPVXMLElement::AttributeNames [protected]
 

Definition at line 88 of file vtkPVXMLElement.h.

char** vtkPVXMLElement::AttributeValues [protected]
 

Definition at line 89 of file vtkPVXMLElement.h.

unsigned int vtkPVXMLElement::NumberOfAttributes [protected]
 

Definition at line 90 of file vtkPVXMLElement.h.

unsigned int vtkPVXMLElement::AttributesSize [protected]
 

Definition at line 91 of file vtkPVXMLElement.h.

unsigned int vtkPVXMLElement::NumberOfNestedElements [protected]
 

Definition at line 94 of file vtkPVXMLElement.h.

unsigned int vtkPVXMLElement::NestedElementsSize [protected]
 

Definition at line 95 of file vtkPVXMLElement.h.

vtkPVXMLElement** vtkPVXMLElement::NestedElements [protected]
 

Definition at line 96 of file vtkPVXMLElement.h.

vtkPVXMLElement* vtkPVXMLElement::Parent [protected]
 

Definition at line 99 of file vtkPVXMLElement.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:48:31 2006 for ParaView by doxygen 1.3.5