This abstracts class represents customers. More...
#include <model.h>
Public Member Functions | |
void | beginElement (XMLInput &, const Attribute &) |
Customer (const string &n) | |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
size_t | extrasize () const |
virtual const MetaClass & | getType () const |
void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
virtual | ~Customer () |
Static Public Attributes | |
static const MetaCategory * | metadata |
This abstracts class represents customers.
Demands can be associated with a customer, but there is no planning behavior directly linked to customers.
Definition at line 1374 of file model.h.
frepple::Customer::~Customer | ( | ) | [virtual] |
Definition at line 68 of file customer.cpp.
Called while restoring the model from an XML-file.
This is called for each element within the "this" element, for which the "this" element is immediate parent.
It is called when the open element tag is encountered.
Reimplemented from frepple::utils::Object.
Definition at line 55 of file customer.cpp.
void frepple::Customer::endElement | ( | XMLInput & | , | |
const Attribute & | , | |||
const DataElement & | ||||
) | [virtual] |
Called while restoring the model from an XML-file.
This is called when the corresponding close element tag is encountered, and the Data() member of pElement is valid.
Implements frepple::utils::Object.
Definition at line 61 of file customer.cpp.
size_t frepple::Customer::extrasize | ( | ) | const [inline] |
Returns the memory size in bytes.
Reimplemented from frepple::utils::HasDescription.
virtual const MetaClass& frepple::Customer::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
Reimplemented in frepple::CustomerDefault.
void frepple::Customer::writeElement | ( | XMLOutput * | , | |
const Keyword & | , | |||
mode | = DEFAULT | |||
) | const [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::utils::Object.
Definition at line 36 of file customer.cpp.
const MetaCategory * frepple::Customer::metadata [static] |
Reimplemented in frepple::CustomerDefault.