![]() |
VR-Forces 4.0.4 Class Documentation
|
Admin content which contains the list of radar modes for an emitter. More...

Public Member Functions | |
| DtRadarModesAdmin () | |
| default constructor | |
| DtRadarModesAdmin (const DtRadarModesAdmin &orig) | |
| copy constructor | |
| const DtRadarModesAdmin & | operator= (const DtRadarModesAdmin &orig) |
| assignment operator; same as copy costructor. | |
| virtual | ~DtRadarModesAdmin () |
| destructor | |
| virtual bool | init () |
| Call after construction. | |
| virtual int | type () const |
| virtual void | addMode (const DtString &modeName) |
| Add an additional formation name to the end of the current formation list. | |
| virtual void | clearModeList () |
| Clear the current formation list. | |
| virtual DtAdminContent * | clone () const |
| Make a copy of this content. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this content. | |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Decodes content from buffer. | |
| virtual bool | setToNet () |
| Encodes content into buffer. | |
| virtual const std::list < DtString > & | modeList () const |
| Direct access to the list of formation names. | |
| virtual std::list< DtString > & | modeList () |
| Direct access to the list of formation names. | |
| virtual DtString | currentMode () const |
| The current formation of the entity, if it has one. | |
| virtual void | setCurrentMode (const DtString &modeName) |
| The current formation of the entity, if it has one. | |
| virtual int | emitterId () const |
| The current formation of the entity, if it has one. | |
| virtual void | setEmitterId (int id) |
| The current formation of the entity, if it has one. | |
Static Public Member Functions | |
| static DtAdminContent * | create () |
| Creator function. Returns new instance of this class. | |
Protected Attributes | |
| std::list< DtString > | myModeList |
| The list of available formation names. | |
| DtString | myCurrentMode |
| int | myEmitterId |
Admin content which contains the list of radar modes for an emitter.
This is the response to the DtRequestRadarModesAdmin message. Also contains the current mode of the radar, if it has one.
default constructor
| DtRadarModesAdmin::DtRadarModesAdmin | ( | const DtRadarModesAdmin & | orig | ) |
copy constructor
| virtual DtRadarModesAdmin::~DtRadarModesAdmin | ( | ) | [virtual] |
destructor
| const DtRadarModesAdmin& DtRadarModesAdmin::operator= | ( | const DtRadarModesAdmin & | orig | ) |
assignment operator; same as copy costructor.
| static DtAdminContent* DtRadarModesAdmin::create | ( | ) | [static] |
Creator function. Returns new instance of this class.
| virtual bool DtRadarModesAdmin::init | ( | ) | [virtual] |
Call after construction.
Reimplemented from DtAdminContent.
| virtual int DtRadarModesAdmin::type | ( | ) | const [virtual] |
Implements DtAdminContent.
| virtual const std::list<DtString>& DtRadarModesAdmin::modeList | ( | ) | const [virtual] |
Direct access to the list of formation names.
| virtual std::list<DtString>& DtRadarModesAdmin::modeList | ( | ) | [virtual] |
Direct access to the list of formation names.
| virtual void DtRadarModesAdmin::addMode | ( | const DtString & | modeName | ) | [virtual] |
Add an additional formation name to the end of the current formation list.
| virtual void DtRadarModesAdmin::clearModeList | ( | ) | [virtual] |
Clear the current formation list.
| virtual DtString DtRadarModesAdmin::currentMode | ( | ) | const [virtual] |
The current formation of the entity, if it has one.
| virtual void DtRadarModesAdmin::setCurrentMode | ( | const DtString & | modeName | ) | [virtual] |
The current formation of the entity, if it has one.
| virtual int DtRadarModesAdmin::emitterId | ( | ) | const [virtual] |
The current formation of the entity, if it has one.
| virtual void DtRadarModesAdmin::setEmitterId | ( | int | id | ) | [virtual] |
The current formation of the entity, if it has one.
| virtual DtAdminContent* DtRadarModesAdmin::clone | ( | ) | const [virtual] |
Make a copy of this content.
Returns a pointer to a newly created copy of this class.
Implements DtAdminContent.
| virtual DtString DtRadarModesAdmin::stringRep | ( | ) | const [virtual] |
Get a readable string representation of this content.
Implements DtAdminContent.
| virtual int DtRadarModesAdmin::netRepSize | ( | ) | const [virtual] |
Reimplemented from DtAdminContent.
| virtual bool DtRadarModesAdmin::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Decodes content from buffer.
Reimplemented from DtAdminContent.
| virtual bool DtRadarModesAdmin::setToNet | ( | ) | [virtual] |
Encodes content into buffer.
Reimplemented from DtAdminContent.
std::list<DtString> DtRadarModesAdmin::myModeList [protected] |
The list of available formation names.
DtString DtRadarModesAdmin::myCurrentMode [protected] |
int DtRadarModesAdmin::myEmitterId [protected] |