Go to the documentation of this file.
27 #ifndef vtkXMLDataElement_h
28 #define vtkXMLDataElement_h
65 void AddCharacterData(
const char*
c,
size_t length);
107 #ifdef VTK_TYPE_USE_LONG_LONG
108 int GetScalarAttribute(
const char*
name,
long long&
value);
109 int GetVectorAttribute(
const char*
name,
int length,
long long*
value);
110 void SetVectorAttribute(
const char*
name,
int length,
long long const*
value);
111 int GetScalarAttribute(
const char*
name,
unsigned long long&
value);
112 int GetVectorAttribute(
const char*
name,
int length,
unsigned long long*
value);
113 void SetVectorAttribute(
const char*
name,
int length,
unsigned long long const*
value);
115 #ifdef VTK_TYPE_USE___INT64
116 int GetScalarAttribute(
const char*
name, __int64&
value);
118 void SetVectorAttribute(
const char*
name,
int length, __int64
const*
value);
119 int GetScalarAttribute(
const char*
name,
unsigned __int64&
value);
120 int GetVectorAttribute(
const char*
name,
int length,
unsigned __int64*
value);
121 void SetVectorAttribute(
const char*
name,
int length,
unsigned __int64
const*
value);
178 const char*
name,
const char*
id);
180 const char*
name,
const char* att_name,
const char* att_value);
286 friend class vtkXMLMaterialParser;
int GetVectorAttribute(const char *name, int length, double *value)
void SetUnsignedLongAttribute(const char *name, unsigned long value)
void AddNestedElement(vtkXMLDataElement *element)
GLsizei GLsizei GLenum GLenum const GLvoid * data
int GetVectorAttribute(const char *name, int length, unsigned long *value)
size_t CharacterDataBufferSize
virtual void RemoveNestedElement(vtkXMLDataElement *)
void PrintXML(ostream &os, vtkIndent indent)
vtkXMLDataElement ** NestedElements
int GetVectorAttribute(const char *name, int length, int *value)
void SetIntAttribute(const char *name, int value)
virtual void SetName(const char *_arg)
void SetAttribute(const char *name, const char *value)
#define VTK_ENCODING_NONE
vtkXMLDataElement * LookupElementInScope(const char *id)
vtkXMLDataElement * FindNestedElementWithNameAndId(const char *name, const char *id)
#define vtkTypeMacro(thisClass, superclass)
vtkTypeInt64 XMLByteIndex
const char * GetAttributeValue(int idx)
abstract base class for most VTK objects
vtkXMLDataElement * FindNestedElement(const char *id)
vtkXMLDataElement * Parent
GLuint GLsizei GLsizei * length
int GetScalarAttribute(const char *name, int &value)
vtkXMLDataElement * LookupElementUpScope(const char *id)
vtkXMLDataElement * LookupElement(const char *id)
size_t CharacterDataBlockSize
int GetWordTypeAttribute(const char *name, int &value)
void AddCharacterData(const char *c, size_t length)
vtkXMLDataElement * FindNestedElementWithName(const char *name)
#define vtkSetClampMacro(name, type, min, max)
GLuint const GLchar * name
void PrintXML(const char *fname)
GLsizei const GLfloat * value
void SetVectorAttribute(const char *name, int length, const float *value)
virtual int IsEqualTo(vtkXMLDataElement *elem)
void SetDoubleAttribute(const char *name, double value)
vtkXMLDataElement * GetNestedElement(int index)
virtual void RemoveAttribute(const char *name)
a simple class to control print indentation
#define vtkSetStringMacro(name)
virtual void RemoveAllAttributes()
void SetVectorAttribute(const char *name, int length, const double *value)
Represents an XML element and those nested inside.
#define vtkGetMacro(name, type)
vtkGetStringMacro(ExtensionsString)
int GetScalarAttribute(const char *name, unsigned long &value)
static vtkXMLDataElement * New()
void SetVectorAttribute(const char *name, int length, const int *value)
void PrintCharacterData(ostream &os, vtkIndent indent)
vtkXMLDataElement * LookupElementWithName(const char *name)
vtkSetMacro(IgnoreDriverBugs, bool)
int NumberOfNestedElements
static void PrintWithEscapedData(ostream &os, const char *data)
void SetCharacterData(const char *c, int length)
virtual void RemoveAllNestedElements()
#define VTK_ENCODING_UNKNOWN
void SetParent(vtkXMLDataElement *parent)
int GetVectorAttribute(const char *name, int length, float *value)
vtkXMLDataElement * FindNestedElementWithNameAndAttribute(const char *name, const char *att_name, const char *att_value)
const char * GetAttributeName(int idx)
void SetVectorAttribute(const char *name, int length, const unsigned long *value)
int GetNumberOfNestedElements()
#define VTKCOMMONDATAMODEL_EXPORT
size_t EndOfCharacterData
int GetScalarAttribute(const char *name, double &value)
void SetFloatAttribute(const char *name, float value)
int GetScalarAttribute(const char *name, float &value)
void PrintSelf(ostream &os, vtkIndent indent)
static int IsSpace(char c)
virtual vtkXMLDataElement * GetRoot()
const char * GetAttribute(const char *name)
vtkXMLDataElement * GetParent()
Used by vtkXMLReader to parse VTK XML files.
virtual void DeepCopy(vtkXMLDataElement *elem)
vtkTypeInt64 InlineDataPosition