#include <abstract_interface.h>
Inheritance diagram for NLAIC::CSelfClassFactory:
Nevrax France
Definition at line 387 of file abstract_interface.h.
NLMISC::IStreamable method. | |
virtual std::string | getClassName () |
virtual void | serial (NLMISC::IStream &) throw (NLMISC::EStream) |
Public Member Functions | |
const IBasicType * | clone () const |
Clone the class factory. | |
const IBasicInterface * | createInstance () const |
Create a new instance from the class builder. | |
CSelfClassFactory (const IBasicInterface &a) | |
Construct class with a builder class. | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual const IBasicInterface * | getClass () const |
get the builder class. | |
void | getDebugString (std::string &text) const |
Get debufg string. | |
virtual const std::string | getInfo () |
const sint32 & | getRef () const |
get the refence count. | |
const CIdentType & | getType () const |
Get the type of the class, the type is the builder type. | |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
const IBasicType * | newInstance () const |
get a new instance of the class factory. | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual void | setClass (const IBasicInterface &inst) |
Set the mirror class to build. | |
~CSelfClassFactory () | |
Private Attributes | |
IBasicInterface * | _Inst |
Class buider. |
|
Construct class with a builder class.
Definition at line 394 of file abstract_interface.h. References _Inst. Referenced by clone().
00394 : _Inst((IBasicInterface *)a.newInstance()) 00395 { 00396 00397 } |
|
Definition at line 444 of file abstract_interface.h. References _Inst, and NLAIC::IPointerGestion::release().
00445 { 00446 _Inst->release(); 00447 } |
|
Clone the class factory.
Implements NLAIC::IBasicType. Definition at line 406 of file abstract_interface.h. References _Inst, CSelfClassFactory(), and x. Referenced by newInstance().
00407 { 00408 IBasicType *x = new CSelfClassFactory(*_Inst); 00409 return x; 00410 } |
|
Create a new instance from the class builder.
Implements NLAIC::IClassFactory. Definition at line 400 of file abstract_interface.h. References _Inst, and NLAIC::IBasicType::newInstance().
00401 { 00402 return (const IBasicInterface *)_Inst->newInstance(); 00403 } |
|
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 }
|
|
get the builder class.
Implements NLAIC::IClassFactory. Definition at line 432 of file abstract_interface.h. References _Inst.
00433 { 00434 return _Inst; 00435 } |
|
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 } |
|
Get debufg string.
Implements NLAIC::IBasicType. Definition at line 419 of file abstract_interface.h. References _Inst, NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00420 { 00421 //sprintf(text,"CSelfClassFactory sur l'interface %s",(const char *)_Inst->getType()); 00422 text = stringGetBuild("CSelfClassFactory sur l'interface %s",(const char *)_Inst->getType()); 00423 } |
|
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 }
|
|
Get the type of the class, the type is the builder type.
Implements NLAIC::IBasicType. Definition at line 426 of file abstract_interface.h. References _Inst, and NLAIC::IBasicType::getType(). Referenced by NLAIAGENT::setRegister().
00427 { 00428 return _Inst->getType(); 00429 } |
|
|
get a new instance of the class factory.
Implements NLAIC::IBasicType. Definition at line 413 of file abstract_interface.h. References clone().
00414 { 00415 return clone(); 00416 } |
|
|
Implements NLMISC::IStreamable. Reimplemented in NLAIC::CIdentType, NLAIC::IBasicInterface, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType. Definition at line 120 of file abstract_interface.h. Referenced by NLAISCRIPT::CFindRunMsg::save().
00121 { 00122 } |
|
Set the mirror class to build.
Implements NLAIC::IClassFactory. Definition at line 437 of file abstract_interface.h. References _Inst, NLAIC::IBasicType::clone(), and NLAIC::IPointerGestion::release().
|
|
Class buider.
Definition at line 391 of file abstract_interface.h. Referenced by clone(), createInstance(), CSelfClassFactory(), getClass(), getDebugString(), getType(), setClass(), and ~CSelfClassFactory(). |