# 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  

NLAIC::CIdentType Class Reference

CIdentType define a type for objects and manage the allocation of class in the class factory. More...

#include <abstract_interface.h>

Inheritance diagram for NLAIC::CIdentType:

NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CIdentType (NLMISC::IStream &)
 throw(NLMISC::EStream). More...

 CIdentType (const char *ident)
 Construct object with a name. More...

 CIdentType (const char *ident, const IClassFactory &classCFactory, const CTypeOfObject &objType, const CTypeOfOperator &opSupport)
 Construct object. More...

 CIdentType (const CIdentType &i)
 throw (NLAIE::CExceptionContainer);Copy contructor. More...

 ~CIdentType ()
 operator const char * () const
 Get class type name. More...

void operator= (const CIdentType &a)
 Make equality. More...

bool operator== (const CIdentType &a) const
 Test the equality. More...

bool operator< (const CIdentType &a) const
 This test is need for the std::map. More...

bool operator< (const char *a) const
bool operator> (const CIdentType &a) const
sint32 cmp (const CIdentType &a) const
 operator const CTypeOfObject & () const
 operator const CTypeOfOperator & () const
sint32 getIndex () const
const IBasicInterfaceallocClass () const
 Alloc an instance of a class. More...

const IClassFactorygetFactory () const
 Get the class factory associate. More...

void addObjectType (sint32)
NLMISC::IStreamable method.
virtual std::string getClassName ()
virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)

Static Public Attributes

CIdentType VoidType = CIdentType("VOID",CTypeOfObject::tObject,CTypeOfOperator(0),-1)
 Basic shared type need for lot of objects, and special for typing the retern method in the script. More...


Private Methods

 CIdentType (const char *ident, const CTypeOfObject &objType, const CTypeOfOperator &opSupport, sint32 index)
 Construct object with all atribut. It use when we serial object. More...


Private Attributes

char * _Ident
 This is a string for naming the class. More...

CTypeOfObject_ObjType
 This objects allow use to know what kind of objects it is (simple object, agent, scripted agent, operator ...). More...

CTypeOfOperator_OpSupport
 This objects allow use to know what kind of operation we can do with it (add, sub ...). More...

sint32 _Index
 The index of objects in the class gactory map. More...


Friends

class CIdentTypeAlloc

Detailed Description

CIdentType define a type for objects and manage the allocation of class in the class factory.

Not that class is manage in a std::map object and this class allow us to manage objects in the std::map.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 142 of file abstract_interface.h.


Constructor & Destructor Documentation

NLAIC::CIdentType::CIdentType const char *    ident,
const CTypeOfObject   objType,
const CTypeOfOperator   opSupport,
sint32    index
[private]
 

Construct object with all atribut. It use when we serial object.

Definition at line 108 of file ident_type.cpp.

References _Ident, _Index, and index.

Referenced by CIdentType, cmp, operator<, operator==, and operator>.

NLAIC::CIdentType::CIdentType NLMISC::IStream  
 

throw(NLMISC::EStream).

Definition at line 100 of file ident_type.cpp.

NLAIC::CIdentType::CIdentType const char *    ident
 

Construct object with a name.

Object must be mounted in the class factory else an exception wil occur. CExceptionContainer share an CExceptionUnRegisterClassError exception object.

Definition at line 140 of file ident_type.cpp.

References _Ident, _Index, _ObjType, _OpSupport, CIdentType, NLAIC::getRegistry, id, and r.

NLAIC::CIdentType::CIdentType const char *    ident,
const IClassFactory   classCFactory,
const CTypeOfObject   objType,
const CTypeOfOperator   opSupport
 

Construct object.

Object must be mounted in the class factory else an exception wil occur. CExceptionContainer share an CExceptionUnRegisterClassError exception object.

Definition at line 117 of file ident_type.cpp.

References _Ident, _Index, _ObjType, _OpSupport, NLAIC::getRegistry, and r.

NLAIC::CIdentType::CIdentType const CIdentType &    i
 

throw (NLAIE::CExceptionContainer);Copy contructor.

Definition at line 166 of file ident_type.cpp.

References _Ident, and _Index.

NLAIC::CIdentType::~CIdentType  
 

Definition at line 93 of file ident_type.cpp.

References _Ident, _ObjType, and _OpSupport.


Member Function Documentation

void NLAIC::CIdentType::addObjectType sint32   
 

Definition at line 183 of file ident_type.cpp.

References _ObjType, and t.

Referenced by NLAISCRIPT::CMessageClass::CMessageClass.

const IBasicInterface * NLAIC::CIdentType::allocClass   const
 

Alloc an instance of a class.

Definition at line 173 of file ident_type.cpp.

References _Index, and NLAIC::getRegistry.

Referenced by NLAIAGENT::CVolatilMemmory::init, and NLAIAGENT::CAgentOperation::initClass.

sint32 NLAIC::CIdentType::cmp const CIdentType &    a const [inline]
 

Definition at line 216 of file abstract_interface.h.

References _Ident, and CIdentType.

virtual std::string NLAIC::CIdentType::getClassName   [inline, virtual]
 

Reimplemented from NLAIC::IPointerGestion.

Definition at line 243 of file abstract_interface.h.

References _Ident.

Referenced by NLAISCRIPT::CCompilateur::processingVar.

const IClassFactory * NLAIC::CIdentType::getFactory   const
 

Get the class factory associate.

Definition at line 178 of file ident_type.cpp.

References _Index, and NLAIC::getRegistry.

Referenced by NLAISCRIPT::CAgentClass::buildChildsMessageMap, NLAISCRIPT::IOpType::evalParam, NLAISCRIPT::CAgentClass::getStaticMember, NLAISCRIPT::CCompilateur::getValidateHierarchyBase, NLAISCRIPT::CAgentClass::isMessageFunc, NLAISCRIPT::CCompilateur::processingVar, and NLAISCRIPT::CConstraintMethode::run.

sint32 NLAIC::CIdentType::getIndex   const [inline]
 

Definition at line 231 of file abstract_interface.h.

References _Index.

Referenced by NLAISCRIPT::CAgentClass::createComponents.

NLAIC::CIdentType::operator const char *   const [inline]
 

Get class type name.

Definition at line 183 of file abstract_interface.h.

References _Ident.

NLAIC::CIdentType::operator const CTypeOfObject &   const [inline]
 

Definition at line 221 of file abstract_interface.h.

References _ObjType.

NLAIC::CIdentType::operator const CTypeOfOperator &   const [inline]
 

Definition at line 226 of file abstract_interface.h.

References _OpSupport.

bool NLAIC::CIdentType::operator< const char *    a const [inline]
 

Definition at line 206 of file abstract_interface.h.

References _Ident.

bool NLAIC::CIdentType::operator< const CIdentType &    a const [inline]
 

This test is need for the std::map.

Definition at line 201 of file abstract_interface.h.

References _Ident, and CIdentType.

void NLAIC::CIdentType::operator= const CIdentType &    a
 

Make equality.

Definition at line 190 of file ident_type.cpp.

References _Ident, and _Index.

bool NLAIC::CIdentType::operator== const CIdentType &    a const [inline]
 

Test the equality.

Definition at line 196 of file abstract_interface.h.

References _Index, and CIdentType.

bool NLAIC::CIdentType::operator> const CIdentType &    a const [inline]
 

Definition at line 211 of file abstract_interface.h.

References _Ident, and CIdentType.

void NLAIC::CIdentType::serial NLMISC::IStream   f throw (NLMISC::EStream) [virtual]
 

Reimplemented from NLAIC::IPointerGestion.

Definition at line 198 of file ident_type.cpp.

References NLAIC::CRegistry::getIdent, NLAIC::CRegistry::getNumIdent, NLAIC::getRegistry, id, s, and x.

Referenced by NLAISCRIPT::COperandSimple::serial.


Friends And Related Function Documentation

friend class CIdentTypeAlloc [friend]
 

Definition at line 144 of file abstract_interface.h.


Member Data Documentation

char* NLAIC::CIdentType::_Ident [private]
 

This is a string for naming the class.

Definition at line 147 of file abstract_interface.h.

Referenced by CIdentType, cmp, getClassName, operator const char *, operator<, operator=, operator>, and ~CIdentType.

sint32 NLAIC::CIdentType::_Index [private]
 

The index of objects in the class gactory map.

Definition at line 153 of file abstract_interface.h.

Referenced by allocClass, CIdentType, getFactory, getIndex, operator=, and operator==.

CTypeOfObject* NLAIC::CIdentType::_ObjType [private]
 

This objects allow use to know what kind of objects it is (simple object, agent, scripted agent, operator ...).

Definition at line 149 of file abstract_interface.h.

Referenced by addObjectType, CIdentType, operator const CTypeOfObject &, and ~CIdentType.

CTypeOfOperator* NLAIC::CIdentType::_OpSupport [private]
 

This objects allow use to know what kind of operation we can do with it (add, sub ...).

Definition at line 151 of file abstract_interface.h.

Referenced by CIdentType, operator const CTypeOfOperator &, and ~CIdentType.

CIdentType NLAIC::CIdentType::VoidType = CIdentType("VOID",CTypeOfObject::tObject,CTypeOfOperator(0),-1) [static]
 

Basic shared type need for lot of objects, and special for typing the retern method in the script.

Definition at line 91 of file ident_type.cpp.

Referenced by NLAISCRIPT::COperandAnyObject::getConstraintTypeOf, NLAISCRIPT::COperandVoid::getConstraintTypeOf, NLAIAGENT::COperatorScript::getPrivateMember, NLAIAGENT::CActorScript::getPrivateMember, NLAIC::CBinaryType::getType, NLAIAGENT::CAgentScript::isDeflautProccessMsg, NLAIAGENT::CVectorGroupType::isMember, NLAIAGENT::IBaseGroupType::isMember, NLAIAGENT::CSeqFsmScript::isMember, NLAIAGENT::CFsmScript::isMember, NLAIAGENT::IObjectIA::isMember, NLAIAGENT::INombreDefine::isMember, NLAIAGENT::IVector::isMember, and NLAIAGENT::CActor::isMember.


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