frepple::Customer Class Reference

This abstracts class represents customers. More...

#include <model.h>

Inheritance diagram for frepple::Customer:
frepple::utils::HasHierarchy< Customer > frepple::utils::HasDescription frepple::utils::Object frepple::utils::HasName< Customer > frepple::utils::NonCopyable frepple::utils::Tree::TreeNode frepple::CustomerDefault

List of all members.

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 MetaClassgetType () const
void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
virtual ~Customer ()

Static Public Attributes

static const MetaCategorymetadata

Detailed Description

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.


Constructor & Destructor Documentation

frepple::Customer::Customer ( const string &  n  )  [inline]

Definition at line 1383 of file model.h.

frepple::Customer::~Customer (  )  [virtual]

Definition at line 68 of file customer.cpp.


Member Function Documentation

void frepple::Customer::beginElement ( XMLInput ,
const Attribute  
) [virtual]

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.

Definition at line 1381 of file model.h.

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.

Definition at line 1385 of file model.h.

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.


Member Data Documentation

Reimplemented in frepple::CustomerDefault.

Definition at line 1386 of file model.h.


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

Generated on 25 Sep 2009 for frePPLe by  doxygen 1.6.1