frepple::CalendarDouble::BucketDouble Class Reference

A special type of calendar bucket, designed to hold a a value. More...

#include <model.h>

Inheritance diagram for frepple::CalendarDouble::BucketDouble:

List of all members.

Public Member Functions

void endElement (XMLInput &pIn, const Attribute &pAttr, const DataElement &pElement)
bool getBool () const
virtual size_t getSize () const
virtual const MetaClassgetType () const
double getValue () const
void setValue (const double v)
void writeElement (XMLOutput *o, const Keyword &tag, mode m=DEFAULT) const

Static Public Member Functions

static int initialize ()

Static Public Attributes

static const MetaClassmetadata

Friends

class CalendarDouble

Detailed Description

A special type of calendar bucket, designed to hold a a value.

See also:
Calendar::Bucket

Definition at line 456 of file model.h.


Member Function Documentation

void frepple::CalendarDouble::BucketDouble::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.

Definition at line 487 of file model.h.

bool frepple::CalendarDouble::BucketDouble::getBool ( ) const [inline, virtual]

Convert the value of the bucket to a boolean value.

Reimplemented from frepple::Calendar::Bucket.

Definition at line 472 of file model.h.

virtual size_t frepple::CalendarDouble::BucketDouble::getSize ( ) const [inline, virtual]

Return the memory size of the object in bytes.

Reimplemented from frepple::Calendar::Bucket.

Definition at line 496 of file model.h.

virtual const MetaClass& frepple::CalendarDouble::BucketDouble::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.

Definition at line 500 of file model.h.

double frepple::CalendarDouble::BucketDouble::getValue ( ) const [inline]

Returns the value of this bucket.

Definition at line 469 of file model.h.

int frepple::CalendarDouble::BucketDouble::initialize ( ) [static]

Reimplemented from frepple::Calendar::Bucket.

Definition at line 87 of file calendar.cpp.

void frepple::CalendarDouble::BucketDouble::setValue ( const double  v) [inline]

Updates the value of this bucket.

Definition at line 475 of file model.h.

void frepple::CalendarDouble::BucketDouble::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.

Definition at line 478 of file model.h.


Friends And Related Function Documentation

friend class CalendarDouble [friend]

Definition at line 458 of file model.h.


Member Data Documentation

Reimplemented from frepple::Calendar::Bucket.

Definition at line 499 of file model.h.


The documentation for this class was generated from the following files:

Documentation generated for frePPLe by  doxygen