# 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

Inheritance graph
[legend]
Collaboration diagram for NLAIC::CIdentType:

Collaboration graph
[legend]
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...

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(s):
Chafik sameh , Nevrax France
Date:
2000

Definition at line 132 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 65 of file ident_type.cpp.

NLAIC::CIdentType::CIdentType ( NLMISC::IStream & f )
 

throw(NLMISC::EStream).

Definition at line 57 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 95 of file ident_type.cpp.

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 73 of file ident_type.cpp.

NLAIC::CIdentType::CIdentType ( const CIdentType & i )
 

throw (NLAIE::CExceptionContainer);Copy contructor.

Definition at line 119 of file ident_type.cpp.

NLAIC::CIdentType::~CIdentType ( )
 

Definition at line 50 of file ident_type.cpp.


Member Function Documentation

const IBasicInterface * NLAIC::CIdentType::allocClass ( ) const
 

Alloc an instance of a class.

Definition at line 126 of file ident_type.cpp.

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

Definition at line 203 of file abstract_interface.h.

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

Reimplemented from NLAIC::IPointerGestion.

Definition at line 230 of file abstract_interface.h.

const IClassFactory * NLAIC::CIdentType::getFactory ( ) const
 

Get the class factory associate.

Definition at line 131 of file ident_type.cpp.

Referenced by NLAISCRIPT::IOpType::evalParam(), NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAISCRIPT::CAgentClass::isMessageFunc(), NLAISCRIPT::CCompilateur::processingVar(), and NLAISCRIPT::reinitClass().

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

Definition at line 218 of file abstract_interface.h.

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

Definition at line 208 of file abstract_interface.h.

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

Definition at line 213 of file abstract_interface.h.

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

Get class type name.

Definition at line 173 of file abstract_interface.h.

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

Definition at line 193 of file abstract_interface.h.

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

This test is need for the std::map.

Definition at line 188 of file abstract_interface.h.

void NLAIC::CIdentType::operator= ( const CIdentType & i )
 

Make equality.

Definition at line 136 of file ident_type.cpp.

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

Test the equality.

Definition at line 183 of file abstract_interface.h.

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

Definition at line 198 of file abstract_interface.h.

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

Reimplemented from NLAIC::IPointerGestion.

Definition at line 144 of file ident_type.cpp.

Referenced by NLAISCRIPT::COperandSimple::serial().


Friends And Related Function Documentation

class CIdentTypeAlloc [friend]
 

Definition at line 134 of file abstract_interface.h.


Member Data Documentation

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 48 of file ident_type.cpp.

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

This is a string for naming the class.

Definition at line 137 of file abstract_interface.h.

sint32 NLAIC::CIdentType::_Index [private]
 

The index of objects in the class gactory map.

Definition at line 143 of file abstract_interface.h.

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 139 of file abstract_interface.h.

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 141 of file abstract_interface.h.


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