|
|
|
|
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 ReferenceCIdentType 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
[legend]Collaboration diagram for NLAIC::CIdentType:
[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 IBasicInterface* | allocClass () const |
| Alloc an instance of a class. More...
|
const IClassFactory* | getFactory () const |
| Get the class factory associate. More...
|
|
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
|
Construct object with all atribut. It use when we serial object.
Definition at line 65 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. |
|
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 )
|
|
NLAIC::CIdentType::~CIdentType (
|
)
|
|
Member Function Documentation
sint32 NLAIC::CIdentType::cmp (
|
const CIdentType & a ) const [inline]
|
|
std::string NLAIC::CIdentType::getClassName (
|
) [inline, virtual]
|
|
sint32 NLAIC::CIdentType::getIndex (
|
) const [inline]
|
|
NLAIC::CIdentType::operator const CTypeOfObject & (
|
) const [inline]
|
|
NLAIC::CIdentType::operator const char * (
|
) const [inline]
|
|
bool NLAIC::CIdentType::operator< (
|
const char * a ) const [inline]
|
|
bool NLAIC::CIdentType::operator< (
|
const CIdentType & a ) const [inline]
|
|
void NLAIC::CIdentType::operator= (
|
const CIdentType & i )
|
|
bool NLAIC::CIdentType::operator== (
|
const CIdentType & a ) const [inline]
|
|
bool NLAIC::CIdentType::operator> (
|
const CIdentType & a ) const [inline]
|
|
Friends And Related Function Documentation
class CIdentTypeAlloc [friend]
|
|
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]
|
|
sint32 NLAIC::CIdentType::_Index [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. |
|
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:
|
|