16#ifndef __albaXMLElement_h__
17#define __albaXMLElement_h__
51 virtual int StoreText(
const char *name,
const char *text);
57 virtual int StoreVectorN(
const char *name,
const std::vector<double> &comps,
int num);
61 virtual int StoreVectorN(
const char *name,
const std::vector<int> &comps,
int num);
65 virtual int StoreVectorN(
const char *name,
const std::vector<albaString> &comps,
int num,
const char *tag);
97 virtual int RestoreVectorN(std::vector<albaString> &comps,
unsigned int num,
const char *tag);
albaMatrix - Time stamped 4x4 Matrix.
Abstract class representing the interface for the unit of information stored in the storage.
std::vector< albaStorageElement * > ChildrenVector
albaString - performs common string operations on c-strings.
concrete implementation of albaStorageElement as an XML-DOM element This class represent a concrete i...
bool ExistElement(const char *name)
return true if an element with that name exists
virtual bool GetAttribute(const char *name, albaString &value)
Return find an attribute given its name and return its value.
int ParseData(std::vector< double > &vector, int size)
Internally used to extract vector values from Text data.
virtual ChildrenVector & GetChildren()
Return the list of children.
virtual int RestoreVectorN(std::vector< double > &comps, unsigned int num)
Restore a vectorN from an XML document.
albaXMLElement * GetXMLParent()
return a pointer to the parent element, i.e.
virtual const char * GetName()
get the name of this XML element
albaXMLElement * AppendXMLChild(const char *name)
int ParseData(double *vector, int size)
albaXMLStorage * GetXMLStorage()
return a pointer to the storage who created this element
virtual int StoreVectorN(const char *name, int *comps, int num)
albaXMLElement * FindNestedXMLElement(const char *name)
Find a nested XML element by Name.
virtual void SetAttribute(const char *name, const char *value)
Append an XML attribute to this element.
virtual int RestoreText(albaString &buffer)
Restore a generic text string from an XML document.
albaXMLString * m_Name
Convenient copy of etagName.
virtual int RestoreVectorN(std::vector< albaString > &comps, unsigned int num, const char *tag)
Restore a vectorN from an XML document.
virtual albaStorageElement * AppendChild(const char *name)
Create a new XML child element and return its pointer.
virtual int StoreText(const char *name, const char *text)
Store a generic text into an XML document.
virtual int StoreVectorN(const char *name, double *comps, int num)
void WriteXMLText(const char *text)
this writes text inside a DOM-XML element
virtual int StoreVectorN(const char *name, const std::vector< int > &comps, int num)
Store a vectorN into an XML document.
virtual int RestoreVectorN(double *comps, unsigned int num)
virtual int RestoreMatrix(albaMatrix *matrix)
Store 8bit binary data.
albaXMLElement(mmuXMLDOMElement *element, albaXMLElement *parent, albaXMLStorage *storage)
mmuXMLDOMElement * m_DOMElement
XML element wrapped by this object (USING PIMPL due to Internal Compile errors of VS7)
int ParseData(int *vector, int size)
virtual ~albaXMLElement()
virtual int RestoreVectorN(int *comps, unsigned int num)
virtual int StoreVectorN(const char *name, const std::vector< albaString > &comps, int num, const char *tag)
Store a vectorN into an XML document.
virtual int RestoreVectorN(std::vector< int > &comps, unsigned int num)
Restore a vectorN from an XML document.
int ParseData(std::vector< int > &vector, int size)
virtual int StoreMatrix(const char *name, const albaMatrix *matrix)
Store a matrix into an XML document.
mmuXMLDOMElement * GetXMLElement()
return DOM-XML element stored inside this albaXMLElement
virtual int StoreVectorN(const char *name, const std::vector< double > &comps, int num)
Store a vectorN into an XML document.
Concrete implementation of Storage object using Xerces-C for storing in XML.
string type for converting const char * to and from XMLString types This is an internal string type t...
mmuXMLDOMElement utility class for PIMPL of XML DOMElement types.