VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtWeaponListResponseAdmin Class Reference

Admin content which contains the list of weapon systems on an entity. More...

Inheritance diagram for DtWeaponListResponseAdmin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtWeaponListResponseAdmin ()
 default constructor
 DtWeaponListResponseAdmin (const DtWeaponListResponseAdmin &orig)
 copy constructor
const DtWeaponListResponseAdminoperator= (const DtWeaponListResponseAdmin &orig)
 assignment operator; same as copy costructor.
virtual ~DtWeaponListResponseAdmin ()
 destructor
virtual bool init ()
 Call after construction.
virtual int type () const
virtual void addWeaponSystem (const DtString &modeName)
 Add an additional weapon system name to the end of the current weapon system list.
virtual void clearWeaponSystems ()
 Clear the current formation list.
virtual DtAdminContentclone () 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 > & 
weaponSystems () const
 Direct access to the list of weapon systems.
virtual std::list< DtString > & weaponSystems ()
 Direct access to the list of weapon systems.

Static Public Member Functions

static DtAdminContentcreate ()
 Creator function. Returns new instance of this class.

Protected Attributes

std::list< DtStringmyWeaponSystems
 The list of weapon system names.

Detailed Description

Admin content which contains the list of weapon systems on an entity.

This is the response to the DtRequestWeaponlistAdmin message.


Constructor & Destructor Documentation

default constructor

copy constructor

destructor


Member Function Documentation

const DtWeaponListResponseAdmin& DtWeaponListResponseAdmin::operator= ( const DtWeaponListResponseAdmin orig)

assignment operator; same as copy costructor.

Creator function. Returns new instance of this class.

virtual bool DtWeaponListResponseAdmin::init ( ) [virtual]

Call after construction.

Reimplemented from DtAdminContent.

virtual int DtWeaponListResponseAdmin::type ( ) const [virtual]
Returns:
DtWeaponListResponseType

Implements DtAdminContent.

virtual const std::list<DtString>& DtWeaponListResponseAdmin::weaponSystems ( ) const [virtual]

Direct access to the list of weapon systems.

virtual std::list<DtString>& DtWeaponListResponseAdmin::weaponSystems ( ) [virtual]

Direct access to the list of weapon systems.

virtual void DtWeaponListResponseAdmin::addWeaponSystem ( const DtString modeName) [virtual]

Add an additional weapon system name to the end of the current weapon system list.

Clear the current formation list.

virtual DtAdminContent* DtWeaponListResponseAdmin::clone ( ) const [virtual]

Make a copy of this content.

Returns a pointer to a newly created copy of this class.

Implements DtAdminContent.

virtual DtString DtWeaponListResponseAdmin::stringRep ( ) const [virtual]

Get a readable string representation of this content.

Implements DtAdminContent.

virtual int DtWeaponListResponseAdmin::netRepSize ( ) const [virtual]
Returns:
Size of the serialized representation of this admin content.

Reimplemented from DtAdminContent.

virtual bool DtWeaponListResponseAdmin::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Decodes content from buffer.

Reimplemented from DtAdminContent.

Encodes content into buffer.

Reimplemented from DtAdminContent.


Member Data Documentation

The list of weapon system names.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)