#include <msg_group.h>
Inheritance diagram for NLAIAGENT::CMessageGroup:
Public Member Functions | |
virtual const NLAIC::IBasicType * | clone () const |
CMessageGroup (const CMessageGroup &c) | |
CMessageGroup (sint32 id=0) | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual void | getDebugString (std::string &t) const |
virtual const sint32 & | getId () const |
virtual const std::string | getInfo () |
const sint32 & | getRef () const |
get the refence count. | |
virtual const NLAIC::CIdentType & | getType () const |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
virtual void | load (NLMISC::IStream &is) |
virtual const NLAIC::IBasicType * | newInstance () const |
virtual bool | operator== (const IBasicMessageGroup &grp) const |
virtual bool | operator== (const IBasicMessageGroup *grp) const |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual void | save (NLMISC::IStream &os) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
Static Public Attributes | |
const NLAIC::CIdentType | IdMessageGroup |
CMessageGroup | msgScriptingGroup |
CMessageGroup | systemGroup |
Private Attributes | |
sint32 | _Id |
|
Definition at line 59 of file msg_group.h. References sint32. Referenced by clone(), and newInstance().
00060 { 00061 _Id = id; 00062 } |
|
Definition at line 64 of file msg_group.h. References _Id.
00065 { 00066 _Id = c._Id; 00067 } |
|
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 35 of file msg.cpp. References CMessageGroup(), sint, and x.
00036 { 00037 NLAIC::IBasicType *x = new CMessageGroup( *this ); 00038 00039 #ifdef NL_DEBUG 00040 static sint kaka = 0; 00041 #endif 00042 return x; 00043 } |
|
Decrement the reference of an object.
Definition at line 93 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00094 {
00095 return --_Ref;
00096 }
|
|
Implements NLMISC::IClassable. Reimplemented in NLAIC::CIdentType. Definition at line 116 of file abstract_interface.h. Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().
00117 { 00118 return std::string("<unnamed>"); 00119 } |
|
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 95 of file msg_group.h. References NLAIC::stringGetBuild(), and t.
00096 { 00097 t += NLAIC::stringGetBuild("CMessageGroup<%d>",_Id); 00098 } |
|
Implements NLAIAGENT::IBasicMessageGroup. Definition at line 102 of file msg_group.h. References sint32.
00103 { 00104 return _Id; 00105 } |
|
Definition at line 292 of file abstract_interface.h. References NLAIC::IBasicType::getDebugString(), and s.
00293 { 00294 std::string s; 00295 getDebugString(s); 00296 return s; 00297 } |
|
get the refence count.
Definition at line 99 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00100 {
00101 return _Ref;
00102 }
|
|
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 30 of file msg_group.cpp. References IdMessageGroup.
00031 { 00032 return IdMessageGroup; 00033 } |
|
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Definition at line 75 of file msg_group.h. References NLMISC::IStream::serial(), and sint32.
|
|
This function allow a new instance, that mean that the class is a class factory. Implements NLAIC::IBasicType. Definition at line 45 of file msg.cpp. References CMessageGroup(), and x.
00046 { 00047 NLAIC::IBasicType *x = new CMessageGroup( *this ); 00048 return x; 00049 } |
|
Implements NLAIAGENT::IBasicMessageGroup. Definition at line 90 of file msg_group.h. References NLAIAGENT::IBasicMessageGroup::getId().
00091 { 00092 return ( this->_Id == grp.getId()); 00093 } |
|
Implements NLAIAGENT::IBasicMessageGroup. Definition at line 85 of file msg_group.h. References NLAIAGENT::IBasicMessageGroup::getId().
00086 { 00087 return ( this->_Id == grp->getId() ); 00088 } |
|
|
Save the class in a stream. Implements NLAIC::IBasicInterface. Definition at line 69 of file msg_group.h. References NLMISC::IStream::serial(), and sint32.
|
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Definition at line 53 of file msg_group.h. Referenced by CMessageGroup(). |
|
Referenced by getType(). |
|
|
|
|