A special type of calendar bucket, designed to hold a a value. More...
#include <model.h>
Public Member Functions | |
void | endElement (XMLInput &pIn, const Attribute &pAttr, const DataElement &pElement) |
template<> | |
bool | getBool () const |
template<> | |
bool | getBool () const |
bool | getBool () const |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
const T & | getValue () const |
void | setValue (const T &v) |
void | writeElement (XMLOutput *o, const Keyword &tag, mode m=DEFAULT) const |
Friends | |
class | CalendarValue< T > |
A special type of calendar bucket, designed to hold a a value.
Definition at line 379 of file model.h.
void frepple::CalendarValue< T >::BucketValue::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) | [inline, virtual] |
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::CalendarValue::BucketValue< string >::getBool | ( | ) | const [inline, virtual] |
Convert the value of the bucket to a boolean value.
Reimplemented from frepple::Calendar::Bucket.
bool frepple::CalendarValue::BucketValue< string >::getBool | ( | ) | const [inline, virtual] |
Convert the value of the bucket to a boolean value.
Reimplemented from frepple::Calendar::Bucket.
Definition at line 38 of file calendar.cpp.
bool frepple::CalendarValue< T >::BucketValue::getBool | ( | ) | const [inline, virtual] |
Convert the value of the bucket to a boolean value.
Reimplemented from frepple::Calendar::Bucket.
virtual size_t frepple::CalendarValue< T >::BucketValue::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Reimplemented from frepple::Calendar::Bucket.
virtual const MetaClass& frepple::CalendarValue< T >::BucketValue::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Reimplemented from frepple::Calendar::Bucket.
const T& frepple::CalendarValue< T >::BucketValue::getValue | ( | ) | const [inline] |
Returns the value of this bucket.
Reimplemented from frepple::Calendar::Bucket.
void frepple::CalendarValue< T >::BucketValue::setValue | ( | const T & | v | ) | [inline] |
void frepple::CalendarValue< T >::BucketValue::writeElement | ( | XMLOutput * | , | |
const Keyword & | , | |||
mode | = DEFAULT | |||
) | const [inline, virtual] |
Called while writing the model into an XML-file. The user class should write itself out, using the IOutStream members for its "simple" members and calling writeElement recursively for any contained objects. Not all classes are expected to implement this method. In instances of such a class can be created but can't be persisted. E.g. Command
Reimplemented from frepple::Calendar::Bucket.
friend class CalendarValue< T > [friend] |