A special type of calendar bucket, designed to hold a pointer to an object. More...
#include <model.h>
Public Member Functions | |
void | beginElement (XMLInput &pIn, const Attribute &pAttr) |
void | endElement (XMLInput &pIn, const Attribute &pAttr, const DataElement &pElement) |
bool | getBool () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
T * | getValue () const |
void | setValue (T *v) |
void | writeElement (XMLOutput *o, const Keyword &tag, mode m=DEFAULT) const |
Friends | |
class | CalendarPointer< T > |
A special type of calendar bucket, designed to hold a pointer to an object.
Definition at line 570 of file model.h.
void frepple::CalendarPointer< T >::BucketPointer::beginElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr | |||
) | [inline] |
void frepple::CalendarPointer< T >::BucketPointer::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) | [inline] |
Reads the bucket information from the input. Only the fields "name" and "start" are read in. Other fields as also written out but these are information-only fields.
Reimplemented from frepple::Calendar::Bucket.
bool frepple::CalendarPointer< T >::BucketPointer::getBool | ( | ) | const [inline, virtual] |
Convert the value of the bucket to a boolean value.
Reimplemented from frepple::Calendar::Bucket.
virtual size_t frepple::CalendarPointer< T >::BucketPointer::getSize | ( | ) | const [inline, virtual] |
Reimplemented from frepple::Calendar::Bucket.
virtual const MetaClass& frepple::CalendarPointer< T >::BucketPointer::getType | ( | ) | const [inline, virtual] |
Reimplemented from frepple::Calendar::Bucket.
T* frepple::CalendarPointer< T >::BucketPointer::getValue | ( | ) | const [inline] |
Returns the value stored in this bucket.
Reimplemented from frepple::Calendar::Bucket.
void frepple::CalendarPointer< T >::BucketPointer::setValue | ( | T * | v | ) | [inline] |
void frepple::CalendarPointer< T >::BucketPointer::writeElement | ( | XMLOutput * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [inline, virtual] |
Reimplemented from frepple::Calendar::Bucket.
friend class CalendarPointer< T > [friend] |