Abstract class that defines some common implementation issues for many XMLables that contains as member variables the XML name and whether is an XML element or not. More...
#include <BasicXMLable.hxx>
Public Member Functions | |
BasicXMLable (const char *name=0, bool isXMLElement=false) | |
Constructs a BasicXMLable. | |
virtual | ~BasicXMLable () |
const char * | XMLName () const |
bool | IsXMLElement () const |
bool | IsXMLAttribute () const |
bool | IsXMLText () const |
virtual std::string | XMLContent () const =0 |
bool | FulfilsInvariant () |
Abstract class that defines some common implementation issues for many XMLables that contains as member variables the XML name and whether is an XML element or not.
If you don't need those implementation issues consider using XMLable instead which defines only the interface.
Definition at line 46 of file BasicXMLable.hxx.
BasicXMLable::BasicXMLable | ( | const char * | name = 0 , |
|
bool | isXMLElement = false | |||
) |
Constructs a BasicXMLable.
name | A pointer to a 0 terminated string containing the xml name (for elements and attributes) or 0 (the default) if the element is neither an element nor an attribute ( |
isXMLElement | Tells whether the object is an element or an attribute when the name is defined. |
Definition at line 31 of file BasicXMLable.cxx.
References CLAM_ASSERT, CLAM_BEGIN_CHECK, and CLAM_END_CHECK.
BasicXMLable::~BasicXMLable | ( | ) | [virtual] |
Definition at line 27 of file BasicXMLable.cxx.
bool BasicXMLable::FulfilsInvariant | ( | ) |
Reimplemented in CLAM::XMLAdapter< T >, CLAM::XMLArrayAdapter< T >, CLAM::XMLComponentAdapter, and CLAM::XMLIterableAdapter< T >.
Definition at line 55 of file BasicXMLable.cxx.
Referenced by CLAM::XMLComponentAdapter::FulfilsInvariant(), CLAM::XMLArrayAdapter< T >::FulfilsInvariant(), and CLAM::XMLAdapter< T >::FulfilsInvariant().
bool CLAM::BasicXMLable::IsXMLAttribute | ( | ) | const [inline, virtual] |
Implements CLAM::XMLable.
Definition at line 82 of file BasicXMLable.hxx.
bool CLAM::BasicXMLable::IsXMLElement | ( | ) | const [inline, virtual] |
Implements CLAM::XMLable.
Definition at line 77 of file BasicXMLable.hxx.
bool CLAM::BasicXMLable::IsXMLText | ( | ) | const [inline, virtual] |
Implements CLAM::XMLable.
Definition at line 86 of file BasicXMLable.hxx.
virtual std::string CLAM::BasicXMLable::XMLContent | ( | ) | const [pure virtual] |
Implements CLAM::XMLable.
Implemented in CLAM::XMLAdapter< T >, CLAM::XMLArrayAdapter< T >, CLAM::XMLComponentAdapter, and CLAM::XMLIterableAdapter< T >.
const char* CLAM::BasicXMLable::XMLName | ( | ) | const [inline, virtual] |
Implements CLAM::XMLable.
Definition at line 72 of file BasicXMLable.hxx.