13 #include "vtkObject.h"
18 struct vtkPVXMLElementInternals;
23 void PrintSelf(ostream& os, vtkIndent indent)
override;
48 return this->GetAttributeOrDefault(
name,
NULL);
56 return this->GetAttributeOrDefault(
name,
"");
63 const char* GetAttributeOrDefault(
const char*
name,
const char* notFound);
68 const char* GetCharacterData();
75 int GetScalarAttribute(
const char*
name,
int* value);
76 int GetScalarAttribute(
const char*
name,
float* value);
77 int GetScalarAttribute(
const char*
name,
double* value);
78 #if defined(VTK_USE_64BIT_IDS)
79 int GetScalarAttribute(
const char*
name, vtkIdType* value);
88 int GetVectorAttribute(
const char*
name,
int length,
int* value);
89 int GetVectorAttribute(
const char*
name,
int length,
float* value);
90 int GetVectorAttribute(
const char*
name,
int length,
double* value);
91 #if defined(VTK_USE_64BIT_IDS)
92 int GetVectorAttribute(
const char*
name,
int length, vtkIdType* value);
101 int GetCharacterDataAsVector(
int length,
int* value);
102 int GetCharacterDataAsVector(
int length,
float* value);
103 int GetCharacterDataAsVector(
int length,
double* value);
104 #if defined(VTK_USE_64BIT_IDS)
105 int GetCharacterDataAsVector(
int length, vtkIdType* value);
117 unsigned int GetNumberOfNestedElements();
139 void FindNestedElementByName(
const char*
name, vtkCollection* elements);
144 void RemoveAllNestedElements();
166 void AddAttribute(
const char* attrName,
const char* attrValue);
167 void AddAttribute(
const char* attrName,
unsigned int attrValue);
168 void AddAttribute(
const char* attrName,
double attrValue);
169 void AddAttribute(
const char* attrName,
double attrValue,
int precision);
170 void AddAttribute(
const char* attrName,
int attrValue);
171 #if defined(VTK_USE_64BIT_IDS)
172 void AddAttribute(
const char* attrName, vtkIdType attrValue);
179 void RemoveAttribute(
const char* attrName);
188 void SetAttribute(
const char* attrName,
const char* attrValue);
204 void PrintXML(ostream& os, vtkIndent indent);
226 void GetElementsByName(
const char*
name, vtkCollection* elements);
227 void GetElementsByName(
const char*
name,
228 vtkCollection* elements,
235 static std::string Encode(
const char* plaintext);
259 vtkPVXMLElementInternals* Internal;
269 void ReadXMLAttributes(
const char** atts);
270 void AddCharacterData(
const char*
data,
int length);
vtkTypeMacro(vtkPVXMLElement, vtkObject)
const char * GetAttributeOrEmpty(const char *name)
static vtkPVXMLElement * New()
const char * GetAttribute(const char *name)
#define QPCL_ENGINE_LIB_API