Creature Class Reference
#include <vostut8creature.hh>
Inheritance diagram for Creature:

Detailed Description
Definition at line 100 of file vostut8creature.hh.
Public Member Functions
- virtual const std::string getVOSType ()
- void setGenus (const std::string &value)
- void getGenus (std::string &value)
- void setSpecies (const std::string &value)
- void getSpecies (std::string &value)
- void setCommonName (const std::string &value)
- void getCommonName (std::string &value)
- void setDescription (const std::string &value, const std::string &datatype="string")
- void getDescription (std::string &value, std::string &datatype)
- void setImage (const std::string &data, const std::string &datatype="image/jpeg")
- void getImage (std::string &value, std::string &datatype)
- void addPredator (Creature *p)
- void setLength (double l)
- double getLength ()
Static Public Member Functions
- static VOS::MetaObject * new_Creature (VOS::VobjectBase *superobject, const std::string &type)
Protected Member Functions
- Creature (VOS::VobjectBase *superobject)
Constructor & Destructor Documentation
| Creature::Creature | ( | VOS::VobjectBase * | superobject | ) | [protected] |
Member Function Documentation
| void Creature::addPredator | ( | Creature * | p | ) |
Definition at line 96 of file vostut8creature.cc.
| void Creature::getCommonName | ( | std::string & | value | ) |
Definition at line 70 of file vostut8creature.cc.
| void Creature::getDescription | ( | std::string & | value, | |
| std::string & | datatype | |||
| ) |
Definition at line 81 of file vostut8creature.cc.
| void Creature::getGenus | ( | std::string & | value | ) |
Definition at line 48 of file vostut8creature.cc.
| void Creature::getImage | ( | std::string & | value, | |
| std::string & | datatype | |||
| ) |
Definition at line 91 of file vostut8creature.cc.
| double Creature::getLength | ( | ) |
| void Creature::getSpecies | ( | std::string & | value | ) |
Definition at line 59 of file vostut8creature.cc.
| const std::string Creature::getVOSType | ( | ) | [virtual] |
- Returns:
- the specific VOS type name that represents the VOS interface this object is supplying. This should always be overridden by the subclass.
Reimplemented from VOS::MetaObject.
Reimplemented in Animal.
Definition at line 33 of file vostut8creature.cc.
| MetaObject * Creature::new_Creature | ( | VOS::VobjectBase * | superobject, | |
| const std::string & | type | |||
| ) | [static] |
Definition at line 37 of file vostut8creature.cc.
| void Creature::setCommonName | ( | const std::string & | value | ) |
Definition at line 65 of file vostut8creature.cc.
| void Creature::setDescription | ( | const std::string & | value, | |
| const std::string & | datatype = "string" | |||
| ) |
Definition at line 76 of file vostut8creature.cc.
| void Creature::setGenus | ( | const std::string & | value | ) |
Definition at line 43 of file vostut8creature.cc.
| void Creature::setImage | ( | const std::string & | data, | |
| const std::string & | datatype = "image/jpeg" | |||
| ) |
Definition at line 86 of file vostut8creature.cc.
| void Creature::setLength | ( | double | l | ) |
| void Creature::setSpecies | ( | const std::string & | value | ) |
Definition at line 54 of file vostut8creature.cc.
The documentation for this class was generated from the following files:
- /home/tetron/hack/vos/apps/tutorials/vostut8creature.hh
- /home/tetron/hack/vos/apps/tutorials/vostut8creature.cc