# 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  

NLAIAGENT::CPairType Class Reference

This class is a IObjetOp pair type. More...

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CPairType:

NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CPairType (IObjectIA *first, IObjectIA *second)
 CPairType (const CPairType &a)
virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

virtual const CProcessResult & run ()
 Some where Run method define the process of the agen. More...

virtual void getDebugString (std::string &text) const
 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. More...

virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

IObjectIAfirst () const
IObjectIAsecond () const
virtual ~CPairType ()
virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

virtual tQueue isMember (const IVarName *, const IVarName *, const IObjectIA &) const
 The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...

virtual CProcessResult runMethodeMember (sint32, sint32, IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual CProcessResult runMethodeMember (sint32 index, IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...


Static Public Attributes

CMethodCall _Method []
const NLAIC::CIdentType IdPaireType

Private Attributes

IObjectIA_First
IObjectIA_Second

Detailed Description

This class is a IObjetOp pair type.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 151 of file agent_object.h.


Constructor & Destructor Documentation

NLAIAGENT::CPairType::CPairType IObjectIA   first,
IObjectIA   second
[inline]
 

Definition at line 173 of file agent_object.h.

References _First, _Second, first, NLAIAGENT::IObjectIA::IObjectIA, and second.

Referenced by clone, CPairType, and isEqual.

NLAIAGENT::CPairType::CPairType const CPairType &    a [inline]
 

Definition at line 178 of file agent_object.h.

References _First, _Second, and CPairType.

virtual NLAIAGENT::CPairType::~CPairType   [inline, virtual]
 

Definition at line 243 of file agent_object.h.

References _First, and _Second.


Member Function Documentation

virtual const NLAIC::IBasicType* NLAIAGENT::CPairType::clone   const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 184 of file agent_object.h.

References CPairType.

Referenced by newInstance.

IObjectIA* NLAIAGENT::CPairType::first   const [inline]
 

Definition at line 233 of file agent_object.h.

References _First, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by CPairType.

virtual void NLAIAGENT::CPairType::getDebugString std::string &    text const [inline, virtual]
 

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 214 of file agent_object.h.

References _First, _Second, and s.

sint32 NLAIAGENT::CPairType::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 44 of file paire_type.cpp.

References NLAIAGENT::_LastM.

virtual const NLAIC::CIdentType& NLAIAGENT::CPairType::getType   const [inline, virtual]
 

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).

Implements NLAIC::IBasicType.

Definition at line 195 of file agent_object.h.

virtual bool NLAIAGENT::CPairType::isEqual const IBasicObjectIA   a const [inline, virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 249 of file agent_object.h.

References _Second, CPairType, NLAIAGENT::IBasicObjectIA::IBasicObjectIA, and t.

tQueue NLAIAGENT::CPairType::isMember const IVarName  ,
const IVarName  ,
const IObjectIA  
const [virtual]
 

The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.

remember we use the overloadind method.

NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.

methodName: is the name of the class.

param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 49 of file paire_type.cpp.

References NLAIAGENT::_LastM, _Method, NLAIAGENT::CPairType::CMethodCall::Index, NLAIAGENT::IObjetOp::IObjetOp::isMember, and NLAIAGENT::tQueue.

virtual bool NLAIAGENT::CPairType::isTrue   const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 228 of file agent_object.h.

virtual void NLAIAGENT::CPairType::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 205 of file agent_object.h.

virtual const NLAIC::IBasicType* NLAIAGENT::CPairType::newInstance   const [inline, virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 190 of file agent_object.h.

References clone.

virtual const CProcessResult& NLAIAGENT::CPairType::run   [inline, virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 209 of file agent_object.h.

IObjectIA::CProcessResult NLAIAGENT::CPairType::runMethodeMember sint32    index,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 78 of file paire_type.cpp.

References index.

IObjectIA::CProcessResult NLAIAGENT::CPairType::runMethodeMember sint32   ,
sint32   ,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method.

heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 74 of file paire_type.cpp.

virtual void NLAIAGENT::CPairType::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 201 of file agent_object.h.

IObjectIA* NLAIAGENT::CPairType::second   const [inline]
 

Definition at line 238 of file agent_object.h.

References _Second, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by CPairType.


Member Data Documentation

IObjectIA* NLAIAGENT::CPairType::_First [private]
 

Definition at line 166 of file agent_object.h.

Referenced by CPairType, first, getDebugString, and ~CPairType.

CPairType::CMethodCall NLAIAGENT::CPairType::_Method [static]
 

Initial value:

 
        {
                CPairType::CMethodCall(_CONSTRUCTOR_,NLAIAGENT::_Const),
                CPairType::CMethodCall(_FIRST_, NLAIAGENT::_First),
                CPairType::CMethodCall(_SECOND_, NLAIAGENT::_Second)            
        }

Definition at line 37 of file paire_type.cpp.

Referenced by isMember.

IObjectIA* NLAIAGENT::CPairType::_Second [private]
 

Definition at line 167 of file agent_object.h.

Referenced by CPairType, getDebugString, isEqual, second, and ~CPairType.

const NLAIC::CIdentType CPairType::IdPaireType [static]
 


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