|
Separatista
|
#include <choiceelement.h>
Public Member Functions | |
| void | fromDOMDocument (xercesc::DOMElement *pDOMElement, const ErrorOptions errorOptions=ThrowExceptions) |
| IOErrorCode | toDOMDocument (xercesc::DOMDocument *pDOMDocument, xercesc::DOMElement *pDOMParent, const ErrorOptions errorOptions=ThrowExceptions) const |
| Element * | getElementByTag (const wchar_t *pTagName, size_t nIndex=0) const |
| Element * | createElementByTag (const wchar_t *pTagName, size_t nIndex=0) |
| void | destroyElement (Element *pChildElement) |
Public Member Functions inherited from Separatista::Element | |
| const ElementDescriptor * | getElementDescriptor () const |
| void | addElementListener (ElementListener *pElementListener) |
| void | removeElementListener (ElementListener *pElementListener) |
| const wchar_t * | getTag () const |
| virtual const wchar_t * | getTextValue () const |
| virtual void | setValue (const wchar_t *pValue, const ErrorOptions errorOptions=ThrowExceptions) |
| virtual const wchar_t * | getAttributeValue (const wchar_t *pAttributeName) const |
| virtual void | setAttributeValue (const wchar_t *pAttributeName, const wchar_t *pValue) |
| time_t | getDateValue () const |
| void | setValue (const time_t Value, bool bWithTime=false, const ErrorOptions errorOptions=ThrowExceptions) |
| int | getIntValue () const |
| void | setValue (const int Value, const ErrorOptions errorOptions=ThrowExceptions) |
| double | getDoubleValue () const |
| void | setValue (const double d, const ErrorOptions errorOptions=ThrowExceptions) |
| bool | isEmpty () const |
| virtual TagKeyRange | getAllByTagName (const wchar_t *pTagName) |
Static Public Member Functions | |
| static Element * | createElement (const ChildElementDescriptor *pChildElementDescriptor) |
Protected Member Functions | |
| ChoiceElement (const ChildElementDescriptor *pChildElementDescriptor) | |
Protected Member Functions inherited from Separatista::Element | |
| Element (const ChildElementDescriptor *pChildElementDescriptor) | |
| virtual | ~Element () |
| Element * | getParentElement () const |
| void | onElementValueChanged (const wchar_t *pNewValue) |
| Calls a registered ElementListener's elementValueChanged. | |
| void | onElementCreated (Element *pChildElement) |
| Calls a registered ElementListener's elementCreated. | |
| void | onElementDeleted () |
| Calls a registered ElementListener's elementDeleted. | |
Additional Inherited Members | |
Public Types inherited from Separatista::Element | |
| enum | ErrorOptions { ThrowExceptions = 0, ClearValue, AcceptValue } |
| typedef std::map< const TagKey, Element * > | TagKeyMap |
Static Protected Member Functions inherited from Separatista::Element | |
| static void | deleteElement (Element *pChildElement) |
ChoiceElements are elements that hold only one child element.
|
protected |
Constructor
|
static |
Creates the element from it's descriptor
|
virtual |
As ChoiceElements hold only one child element, the existing child element is destroyed if a new child element is created.
Reimplemented from Separatista::Element.
|
virtual |
Destroys the one and only child
Reimplemented from Separatista::Element.
|
virtual |
Iterates over the possible choices and calls fromDOMDocument on the chosen element.
Implements Separatista::Element.
|
virtual |
Reimplemented from Separatista::Element.
|
virtual |
Abstract method to call to write an element to a DOMDocument.
| pDocument | The DOMDocument to create the element for. |
| pParent | The DOMElement to append the element to. |
Implements Separatista::Element.