# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::CVectorMsgContainer Class Reference

#include <msg_container.h>

Inheritance diagram for NLAIAGENT::CVectorMsgContainer:

NLAIAGENT::IBasicMsgContainer NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CVectorMsgContainer ()
 CVectorMsgContainer (const CVectorMsgContainer &)
virtual ~CVectorMsgContainer ()
virtual void save (NLMISC::IStream &)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &)
 Load the class from a stream. More...

virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

void getDebugString (std::string &t) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

virtual void addMessage (IMessageBase *)
virtual std::list< const IMessageBase * > * CVectorMsgContainer::pumpMessages (const IBasicMessageGroup &)
virtual const IMessageBasegetMessage ()
virtual void popMessage ()
virtual const sint32 size () const
virtual std::list< const IMessageBase * > * operator[] (const IBasicMessageGroup &)

Static Public Attributes

const NLAIC::CIdentType IdVectorMsgContainer

Private Methods

sint32 findIndex (const IBasicMessageGroup &grp)

Private Attributes

std::vector< std::list< const
IMessageBase * > > 
_Messages
std::list< const IBasicMessageGroup * > _MsgIndex
sint32 _Size
sint32 _CurrentGrp

Constructor & Destructor Documentation

NLAIAGENT::CVectorMsgContainer::CVectorMsgContainer  
 

Definition at line 31 of file msg_container.cpp.

References _CurrentGrp, and _Size.

Referenced by clone, and newInstance.

NLAIAGENT::CVectorMsgContainer::CVectorMsgContainer const CVectorMsgContainer &   
 

Definition at line 37 of file msg_container.cpp.

References _CurrentGrp, _Messages, _MsgIndex, _Size, and index.

NLAIAGENT::CVectorMsgContainer::~CVectorMsgContainer   [virtual]
 

Definition at line 61 of file msg_container.cpp.

References _Messages, _MsgIndex, and index.


Member Function Documentation

void NLAIAGENT::CVectorMsgContainer::addMessage IMessageBase   [virtual]
 

Implements NLAIAGENT::IBasicMsgContainer.

Definition at line 109 of file msg_container.cpp.

References _Messages, _MsgIndex, _Size, findIndex, and index.

Referenced by load.

const NLAIC::IBasicType * NLAIAGENT::CVectorMsgContainer::clone   const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 91 of file msg_container.cpp.

References CVectorMsgContainer, and x.

virtual std::list<const IMessageBase *>* NLAIAGENT::CVectorMsgContainer::CVectorMsgContainer::pumpMessages const IBasicMessageGroup   [virtual]
 

sint32 NLAIAGENT::CVectorMsgContainer::findIndex const IBasicMessageGroup   grp [private]
 

Definition at line 186 of file msg_container.cpp.

References _MsgIndex.

Referenced by addMessage.

void NLAIAGENT::CVectorMsgContainer::getDebugString std::string &    t const [inline, virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Definition at line 83 of file msg_container.h.

References t.

const IMessageBase * NLAIAGENT::CVectorMsgContainer::getMessage   [virtual]
 

Implements NLAIAGENT::IBasicMsgContainer.

Definition at line 131 of file msg_container.cpp.

References _CurrentGrp, and _Messages.

const NLAIC::CIdentType & NLAIAGENT::CVectorMsgContainer::getType   const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Implements NLAIC::IBasicType.

Definition at line 102 of file msg_container.cpp.

References IdVectorMsgContainer.

void NLAIAGENT::CVectorMsgContainer::load NLMISC::IStream   [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 249 of file msg_container.cpp.

References _MsgIndex, addMessage, NLAIC::CIdentTypeAlloc::allocClass, id, and NLMISC::IStream::serial.

const NLAIC::IBasicType * NLAIAGENT::CVectorMsgContainer::newInstance   const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 97 of file msg_container.cpp.

References CVectorMsgContainer, and x.

std::list< const IMessageBase * > * NLAIAGENT::CVectorMsgContainer::operator[] const IBasicMessageGroup   [virtual]
 

Implements NLAIAGENT::IBasicMsgContainer.

Definition at line 204 of file msg_container.cpp.

References NLAIAGENT::IBasicMsgContainer::pumpMessages.

void NLAIAGENT::CVectorMsgContainer::popMessage   [virtual]
 

Implements NLAIAGENT::IBasicMsgContainer.

Definition at line 148 of file msg_container.cpp.

References _CurrentGrp, _Messages, and _Size.

void NLAIAGENT::CVectorMsgContainer::save NLMISC::IStream   [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 210 of file msg_container.cpp.

References _Messages, _MsgIndex, _Size, index, NLMISC::IStream::serial, and size.

virtual const sint32 NLAIAGENT::CVectorMsgContainer::size   const [inline, virtual]
 

Implements NLAIAGENT::IBasicMsgContainer.

Definition at line 92 of file msg_container.h.

References _Size.

Referenced by save.


Member Data Documentation

sint32 NLAIAGENT::CVectorMsgContainer::_CurrentGrp [private]
 

Definition at line 64 of file msg_container.h.

Referenced by CVectorMsgContainer, getMessage, and popMessage.

std::vector< std::list<const IMessageBase *> > NLAIAGENT::CVectorMsgContainer::_Messages [private]
 

Definition at line 61 of file msg_container.h.

Referenced by addMessage, CVectorMsgContainer, getMessage, popMessage, save, and ~CVectorMsgContainer.

std::list<const IBasicMessageGroup *> NLAIAGENT::CVectorMsgContainer::_MsgIndex [private]
 

Definition at line 62 of file msg_container.h.

Referenced by addMessage, CVectorMsgContainer, findIndex, load, save, and ~CVectorMsgContainer.

sint32 NLAIAGENT::CVectorMsgContainer::_Size [private]
 

Definition at line 63 of file msg_container.h.

Referenced by addMessage, CVectorMsgContainer, popMessage, save, and size.

const NLAIC::CIdentType CVectorMsgContainer::IdVectorMsgContainer [static]
 

Referenced by getType.


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