This abstract class is used to associate buffers and resources with a physical or logical location. More...
#include <model.h>
Public Member Functions | |
void | beginElement (XMLInput &, const Attribute &) |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
size_t | extrasize () const |
virtual PyObject * | getattro (const Attribute &) |
CalendarBool * | getAvailable () const |
virtual const MetaClass & | getType () const |
Location (const string &n) | |
virtual int | setattro (const Attribute &, const PythonObject &) |
void | setAvailable (CalendarBool *b) |
void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
virtual | ~Location () |
Static Public Member Functions | |
static int | initialize () |
Static Public Attributes | |
static const MetaCategory * | metadata |
This abstract class is used to associate buffers and resources with a physical or logical location.
The 'available' calendar is used to model the working hours and holidays of resources, buffers and operations.
Definition at line 1354 of file model.h.
frepple::Location::Location | ( | const string & | n | ) | [inline, explicit] |
frepple::Location::~Location | ( | ) | [virtual] |
Destructor.
Definition at line 113 of file location.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::HasHierarchy< Location >.
Definition at line 80 of file location.cpp.
void frepple::Location::endElement | ( | XMLInput & | pIn, | |
const Attribute & | pAttr, | |||
const DataElement & | pElement | |||
) |
Reimplemented from frepple::utils::HasDescription.
Definition at line 89 of file location.cpp.
size_t frepple::Location::extrasize | ( | ) | const [inline] |
Returns the memory size in bytes.
Reimplemented from frepple::utils::HasDescription.
PyObject * frepple::Location::getattro | ( | const Attribute & | attr | ) | [virtual] |
Default getattro method.
Subclasses are expected to implement an override if the type supports gettattro.
Reimplemented from frepple::utils::PythonExtensionBase.
Definition at line 132 of file location.cpp.
CalendarBool* frepple::Location::getAvailable | ( | ) | const [inline] |
virtual const MetaClass& frepple::Location::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::LocationDefault.
int frepple::Location::initialize | ( | ) | [static] |
Reimplemented in frepple::LocationDefault.
Definition at line 39 of file location.cpp.
int frepple::Location::setattro | ( | const Attribute & | attr, | |
const PythonObject & | field | |||
) | [virtual] |
Default setattro method.
Subclasses are expected to implement an override if the type supports settattro.
Reimplemented from frepple::utils::PythonExtensionBase.
Definition at line 152 of file location.cpp.
void frepple::Location::setAvailable | ( | CalendarBool * | b | ) | [inline] |
Reimplemented from frepple::utils::HasDescription.
Definition at line 60 of file location.cpp.
const MetaCategory * frepple::Location::metadata [static] |
Reimplemented in frepple::LocationDefault.