This class is the default implementation of the abstract Item class. More...

#include <model.h>

Inheritance diagram for frepple::ItemDefault:

List of all members.

Public Member Functions

virtual size_t getSize () const
virtual const MetaClassgetType () const
 ItemDefault (const string &str)
- Public Member Functions inherited from frepple::Item
void beginElement (XMLInput &, const Attribute &)
void endElement (XMLInput &, const Attribute &, const DataElement &)
virtual PyObject * getattro (const Attribute &)
OperationgetOperation () const
double getPrice () const
 Item (const string &str)
virtual int setattro (const Attribute &, const PythonObject &)
void setOperation (Operation *o)
void setPrice (const double c)
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const
virtual ~Item ()
- Public Member Functions inherited from frepple::utils::HasHierarchy< Item >
memberIterator beginMember () const
unsigned short getHierarchyLevel () const
ItemgetOwner () const
 HasHierarchy (const string &n)
bool hasOwner () const
bool isGroup () const
void setOwner (Item *f)
 ~HasHierarchy ()
- Public Member Functions inherited from frepple::utils::HasName< Item >
int compare (const PyObject *other) const
 HasName (const string &n)
 HasName (const char *n)
void setName (const string &newname)
virtual PyObject * str () const
 ~HasName ()
- Public Member Functions inherited from frepple::utils::Tree::TreeNode
TreeNodedecrement () const
const string & getName () const
TreeNodeincrement () const
bool operator< (const TreeNode &o)
 TreeNode (const string &n)
virtual ~TreeNode ()
- Public Member Functions inherited from frepple::utils::Object
virtual bool getHidden () const
 Object ()
virtual void setHidden (bool b)
virtual ~Object ()
- Public Member Functions inherited from frepple::utils::PythonExtensionBase
virtual PyObject * call (const PythonObject &args, const PythonObject &kwds)
Py_ssize_t getReferenceCount () const
void initType (const MetaClass *t)
void initType (PyTypeObject *t)
virtual PyObject * iternext ()
 PythonExtensionBase ()
void resetReferenceCount ()
virtual ~PythonExtensionBase ()
- Public Member Functions inherited from frepple::utils::HasDescription
string getCategory () const
string getDescription () const
string getSubCategory () const
void setCategory (const string &f)
void setDescription (const string &f)
void setSubCategory (const string &f)

Static Public Member Functions

static int initialize ()

Static Public Attributes

static const MetaClassmetadata
- Static Public Attributes inherited from frepple::Item

Detailed Description

This class is the default implementation of the abstract Item class.

Definition at line 2659 of file model.h.


Constructor & Destructor Documentation

frepple::ItemDefault::ItemDefault ( const string &  str)
inlineexplicit

Definition at line 2662 of file model.h.


Member Function Documentation

virtual size_t frepple::ItemDefault::getSize ( ) const
inlinevirtual

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 2665 of file model.h.

virtual const MetaClass& frepple::ItemDefault::getType ( ) const
inlinevirtual

This returns the type information on the object, a bit similar to the standard type_info information.

Reimplemented from frepple::Item.

Definition at line 2663 of file model.h.

int frepple::ItemDefault::initialize ( )
static

Reimplemented from frepple::Item.

Definition at line 42 of file item.cpp.


Member Data Documentation

const MetaClass * frepple::ItemDefault::metadata
static

Reimplemented from frepple::Item.

Definition at line 2664 of file model.h.


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