This class associates a resource with its skills. More...
#include <model.h>
Public Member Functions | |
void | beginElement (XMLInput &, const Attribute &) |
void | endElement (XMLInput &, const Attribute &, const DataElement &) |
PyObject * | getattro (const Attribute &) |
Resource * | getResource () const |
virtual size_t | getSize () const |
Skill * | getSkill () const |
virtual const MetaClass & | getType () const |
ResourceSkill () | |
ResourceSkill (Skill *, Resource *, int) | |
ResourceSkill (Skill *, Resource *, int, DateRange) | |
int | setattro (const Attribute &, const PythonObject &) |
void | setResource (Resource *r) |
void | setSkill (Skill *s) |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
![]() | |
virtual bool | getHidden () const |
Object () | |
virtual void | setHidden (bool b) |
virtual | ~Object () |
![]() | |
virtual PyObject * | call (const PythonObject &args, const PythonObject &kwds) |
virtual int | compare (const PyObject *other) const |
Py_ssize_t | getReferenceCount () const |
void | initType (const MetaClass *t) |
void | initType (PyTypeObject *t) |
virtual PyObject * | iternext () |
PythonExtensionBase () | |
void | resetReferenceCount () |
virtual PyObject * | str () const |
virtual | ~PythonExtensionBase () |
![]() | |
DateRange | getEffective () const |
const string & | getName () const |
int | getPriority () const |
A * | getPtrA () const |
B * | getPtrB () const |
Node () | |
Node (A *a, B *b, const ListA &al, const ListB &bl) | |
void | setEffective (DateRange dr) |
void | setEffectiveEnd (Date d) |
void | setEffectiveStart (Date d) |
void | setName (const string x) |
void | setPriority (int i) |
void | setPtrA (A *a, const ListA &al) |
void | setPtrAB (A *a, B *b, const ListA &al, const ListB &bl) |
void | setPtrB (B *b, const ListB &bl) |
Static Public Member Functions | |
static int | initialize () |
static void | writer (const MetaCategory *, XMLOutput *) |
![]() | |
template<class T > | |
static PyObject * | create (PyTypeObject *pytype, PyObject *args, PyObject *kwds) |
template<class T > | |
static Object * | createDefault () |
template<class T > | |
static Object * | createString (const string &n) |
static PyObject * | toXML (PyObject *, PyObject *) |
Static Public Attributes | |
static const MetaCategory * | metadata |
Additional Inherited Members | |
![]() | |
DateRange | effectivity |
string | name |
C * | nextA |
C * | nextB |
int | priority |
A * | ptrA |
B * | ptrB |
![]() | |
static PythonType * | registerPythonType (int, const type_info *) |
![]() | |
static vector< PythonType * > | table |
|
inlineexplicit |
Constructor.
Definition at line 51 of file resourceskill.cpp.
Constructor.
Definition at line 68 of file resourceskill.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 136 of file resourceskill.cpp.
|
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 145 of file resourceskill.cpp.
|
virtual |
Default getattro method.
Subclasses are expected to implement an override if the type supports gettattro.
Reimplemented from frepple::utils::PythonExtensionBase.
Definition at line 189 of file resourceskill.cpp.
|
inline |
|
inlinevirtual |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
|
inline |
|
inlinevirtual |
This returns the type information on the object, a bit similar to the standard type_info information.
Implements frepple::utils::Object.
|
static |
Initialize the class.
Definition at line 30 of file resourceskill.cpp.
|
virtual |
Default setattro method.
Subclasses are expected to implement an override if the type supports settattro.
Reimplemented from frepple::utils::PythonExtensionBase.
Definition at line 205 of file resourceskill.cpp.
|
inline |
|
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::utils::Object.
Definition at line 105 of file resourceskill.cpp.
|
static |
Definition at line 86 of file resourceskill.cpp.
|
static |