#include <registry_type.h>
Inheritance diagram for NLAIC::CTypeOfObject:
Nevrax France
Definition at line 243 of file registry_type.h.
Public Types | |
enum | TTypeBite { tNombre = 1, TString = 2, tLogic = 4, tList = 8, tAgent = 32, tInterpret = 256, tObject = 128, tPerformative = 512, tActor = 1024, tMessage = 2048, tLast = tMessage, tUndef = 0xFFFFFFFF - tLast*2 } |
define the type of an objects. More... | |
Public Member Functions | |
void | addType (sint32 b) |
CTypeOfObject (NLMISC::IStream &is) | |
CTypeOfObject (const CTypeOfObject &bites) | |
CTypeOfObject (uint32 bites) | |
CTypeOfObject () | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual const std::string | getInfo () |
const sint32 & | getRef () const |
get the refence count. | |
uint | getValue () const |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
operator uint () const | |
Get value of class. | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
virtual | ~CTypeOfObject () |
IBasicInterface method. | |
virtual const NLAIC::IBasicType * | clone () const |
virtual void | getDebugString (char *txt) const |
virtual const NLAIC::CIdentType & | getType () const |
virtual const NLAIC::IBasicType * | newInstance () const |
Static Public Attributes | |
NLAIC::CIdentType | IdTypeOfObject |
|
define the type of an objects.
Definition at line 250 of file registry_type.h.
00250 { 00252 tNombre = 1, 00254 TString = 2, 00256 tLogic = 4, 00258 tList = 8, 00259 //tAdresse = 16, 00261 tAgent = 32, 00262 //tExec = 64, 00264 tInterpret = 256, 00266 tObject = 128, 00268 tPerformative = 512, 00270 tActor = 1024, 00271 tMessage = 2048, 00273 tLast = tMessage, 00275 tUndef = 0xFFFFFFFF - tLast*2 00276 00277 }; |
|
Definition at line 279 of file registry_type.h. Referenced by clone(), and newInstance().
00280 { 00281 } |
|
Definition at line 283 of file registry_type.h. References uint32.
00283 :CBinaryType(bites) 00284 { 00285 } |
|
Definition at line 287 of file registry_type.h.
00287 :CBinaryType(bites) 00288 { 00289 } |
|
Definition at line 291 of file registry_type.h.
00291 :CBinaryType(is) 00292 { 00293 } |
|
Definition at line 295 of file registry_type.h.
00296 { 00297 } |
|
Definition at line 229 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32. Referenced by NLAIC::CIdentType::addObjectType().
00230 { 00231 _Bites = _Bites | b; 00232 } |
|
This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. Reimplemented from NLAIC::CBinaryType. Definition at line 301 of file registry_type.h. References CTypeOfObject(), and x.
00302 { 00303 NLAIC::IBasicType *x = new CTypeOfObject(*this); 00304 return x; 00305 } |
|
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 216 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::stringGetBuild(), and t.
00217 { 00218 t = stringGetBuild("CBinaryType <%d>",_Bites); 00219 } |
|
Definition at line 42 of file registry_type.cpp. References sint32, and uint32.
00043 { 00044 if((uint32)*this) 00045 { 00046 txt[0] = 0; 00047 const char *opTxt[9] = {"tNombre","TString","tLogic","tList","tAdresse","tAgent","tExec","tObject","tAgentInterpret"}; 00048 sint32 digi = 1; 00049 sint32 last = false; 00050 for(sint32 i = 0; i< 9; i ++) 00051 { 00052 if(*this & digi) 00053 { 00054 if(last) strcat(txt," | "); 00055 strcat(txt,opTxt[i]); 00056 last = true; 00057 } 00058 } 00059 } 00060 else 00061 { 00062 strcpy(txt,"non definition of object"); 00063 } 00064 } |
|
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). Reimplemented from NLAIC::CBinaryType. Definition at line 37 of file registry_type.cpp. References IdTypeOfObject.
00038 { 00039 return IdTypeOfObject; 00040 } |
|
Definition at line 187 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and uint.
00188 {
00189 return _Bites;
00190 }
|
|
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Definition at line 221 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLMISC::IStream::serial(), and uint32. Referenced by NLAIC::CBinaryType::CBinaryType().
|
|
This function allow a new instance, that mean that the class is a class factory. Reimplemented from NLAIC::CBinaryType. Definition at line 307 of file registry_type.h. References CTypeOfObject(), and x.
00308 { 00309 NLAIC::IBasicType *x = new CTypeOfObject(); 00310 return x; 00311 } |
|
Definition at line 120 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and NLAIC::CBinaryType::CBinaryType().
00121 { 00122 return CBinaryType(_Bites & bites._Bites); 00123 } |
|
Definition at line 116 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::CBinaryType::CBinaryType(), and sint32.
00117 { 00118 return CBinaryType(_Bites & bites); 00119 } |
|
Definition at line 111 of file registry_type.h. References NLAIC::CBinaryType::_Bites.
00112 { 00113 _Bites &= bites._Bites; 00114 return *this; 00115 } |
|
Definition at line 106 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32.
00107 { 00108 _Bites &= bites; 00109 return *this; 00110 } |
|
Get value of class.
Definition at line 182 of file registry_type.h. References NLAIC::CBinaryType::_Bites.
00183 {
00184 return _Bites;
00185 }
|
|
Not operator.
Definition at line 175 of file registry_type.h. References NLAIC::CBinaryType::_Bites.
00176 {
00177 return !_Bites;
00178 }
|
|
Definition at line 156 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::CBinaryType::CBinaryType(), and sint32.
00157 { 00158 return CBinaryType(_Bites << bites); 00159 } |
|
Definition at line 151 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32.
00152 { 00153 _Bites <<= bites; 00154 return *this; 00155 } |
|
Not operator.
Definition at line 169 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::CBinaryType::CBinaryType(), and sint32.
00170 { 00171 return CBinaryType(_Bites >> bites); 00172 } |
|
Not operator.
Definition at line 164 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32.
00165 { 00166 _Bites >>= bites; 00167 return *this; 00168 } |
|
Definition at line 143 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and NLAIC::CBinaryType::CBinaryType().
00144 { 00145 return CBinaryType(_Bites ^ bites._Bites); 00146 } |
|
Definition at line 139 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::CBinaryType::CBinaryType(), and sint32.
00140 { 00141 return CBinaryType(_Bites ^ bites); 00142 } |
|
Definition at line 134 of file registry_type.h. References NLAIC::CBinaryType::_Bites.
00135 { 00136 _Bites ^= bites._Bites; 00137 return *this; 00138 } |
|
Definition at line 128 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32.
00129 { 00130 _Bites ^= bites; 00131 return *this; 00132 } |
|
Definition at line 97 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and NLAIC::CBinaryType::CBinaryType().
00098 { 00099 00100 return CBinaryType(_Bites | bites._Bites); 00101 } |
|
Definition at line 91 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLAIC::CBinaryType::CBinaryType(), and sint32.
00092 { 00093 return CBinaryType(_Bites | bites); 00094 } |
|
Definition at line 86 of file registry_type.h. References NLAIC::CBinaryType::_Bites.
00087 { 00088 _Bites |= bites._Bites; 00089 return *this; 00090 } |
|
Definition at line 81 of file registry_type.h. References NLAIC::CBinaryType::_Bites, and sint32.
00082 { 00083 _Bites |= bites; 00084 return *this; 00085 } |
|
|
Save the class in a stream. Implements NLAIC::IBasicInterface. Definition at line 210 of file registry_type.h. References NLAIC::CBinaryType::_Bites, NLMISC::IStream::serial(), and uint32.
|
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Referenced by getType(). |