NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Classes | Public Member Functions | Public Attributes
Envelope Class Reference

List of all members.

Classes

struct  EnvelopeItem

Public Member Functions

boost::any GetData (const unsigned int &=0)
 Get the data stored at index i.
boost::any GetData (const unsigned int &=0) const
 Get the data stored at index i.
bool GetDataBool (const unsigned int &=0)
int GetDataInt (const unsigned int &=0)
long GetDataLong (const unsigned int &=0)
unsigned int GetDataUInt (const unsigned int &=0)
float GetDataFloat (const unsigned int &=0)
std::string GetDataString (const unsigned int &=0)
D3DXVECTOR3 GetDataVector (const unsigned int &=0)
D3DXQUATERNION GetDataQuat (const unsigned int &=0)
D3DXCOLOR GetDataColor (const unsigned int &=0)
EntitySPTR GetDataEntityP (const unsigned int &=0)
EnvelopeGetDataEnvelopeP (const unsigned int &=0)
EnvelopeSPTR GetDataEnvelopeSPTR (const unsigned int &=0)
template<typename T >
GetDataReference (const unsigned int &index)
template<typename T >
GetDataValue (const unsigned int &index)
template<typename T >
void AddData (const T &data)
template<typename T >
void AddDataValue (const T &data)
template<typename T >
void AddDataReference (T data)
unsigned int GetCount ()
 Returns how many data elements exist in this envelope.
void SaveToPropertyTree (boost::property_tree::ptree &, const std::string &)
 Called to serialize this object into a predefined location in a given property tree.
void LoadFromPropertyTree (boost::property_tree::ptree &, const std::string &)
 Called to unserialize this object from a predefined location in a given property tree.

Public Attributes

int msgid

Detailed Description

Definition at line 37 of file Envelope.h.


Member Function Documentation

template<typename T >
void Envelope::AddData ( const T &  data) [inline]

< Adds more data to the envelope

Definition at line 80 of file Envelope.h.

template<typename T >
void Envelope::AddDataReference ( data) [inline]

< Adds more data to the envelope

Definition at line 94 of file Envelope.h.

template<typename T >
void Envelope::AddDataValue ( const T &  data) [inline]

< Adds more data to the envelope

Definition at line 87 of file Envelope.h.

unsigned int Envelope::GetCount ( )

Returns how many data elements exist in this envelope.

Definition at line 112 of file Envelope.cpp.

boost::any Envelope::GetData ( const unsigned int &  index = 0)

Get the data stored at index i.

Definition at line 82 of file Envelope.cpp.

boost::any Envelope::GetData ( const unsigned int &  index = 0) const

Get the data stored at index i.

Definition at line 89 of file Envelope.cpp.

void Envelope::LoadFromPropertyTree ( boost::property_tree::ptree &  property_tree,
const std::string &  parent_key 
)

Called to unserialize this object from a predefined location in a given property tree.

Definition at line 186 of file Envelope.cpp.

void Envelope::SaveToPropertyTree ( boost::property_tree::ptree &  property_tree,
const std::string &  parent_key 
)

Called to serialize this object into a predefined location in a given property tree.

Definition at line 119 of file Envelope.cpp.


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