# 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  

NLAISCRIPT::CMethodeName Class Reference

Class CMethodeName. More...

#include <interpret_methodes.h>

Inheritance diagram for NLAISCRIPT::CMethodeName:

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

Public Methods

 CMethodeName (const NLAIAGENT::IVarName &name)
 CMethodeName (const CMethodeName &)
 CMethodeName ()
virtual ~CMethodeName ()
void setName (const NLAIAGENT::IVarName &name)
const NLAIAGENT::IVarNamegetName () const
void setParam (const CParam &p)
void setTypeOfMethode (IOpType *)
CParamgetParam ()
void setCode (IOpCode *c)
IOpCodegetCode ()
const IOpTypegetTypeOfMethode () const
NLAIC::IBasicInterface and NLAIAGENT::IObjectIA method.
void load (NLMISC::IStream &)
 Load the class from a stream. More...

void save (NLMISC::IStream &)
 Save the class in a stream. 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 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...

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

virtual void getDebugString (std::string &) 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 isEqual (const NLAIAGENT::IBasicObjectIA &) const
virtual const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...


Static Public Attributes

const NLAIC::CIdentType IdMethodeName

Private Attributes

NLAIAGENT::IVarName_MethodeName
 Name of the method. More...

IOpCode_Code
 op code pointer for run method. More...

CParam _Param
 _Param is the rgument of the method. More...

IOpType_TypeOfMethode
 Type of return expression. More...


Detailed Description

Class CMethodeName.

This class define what a method is. A methid have a name, argument, a branche code ant a return type.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 136 of file interpret_methodes.h.


Constructor & Destructor Documentation

NLAISCRIPT::CMethodeName::CMethodeName const NLAIAGENT::IVarName   name
 

Definition at line 291 of file interpret_methodes.cpp.

References _TypeOfMethode.

Referenced by clone, and newInstance.

NLAISCRIPT::CMethodeName::CMethodeName const CMethodeName &   
 

Definition at line 313 of file interpret_methodes.cpp.

References _Code, _MethodeName, _TypeOfMethode, and NLAIC::IBasicType::clone.

NLAISCRIPT::CMethodeName::CMethodeName  
 

Definition at line 295 of file interpret_methodes.cpp.

References _TypeOfMethode.

Referenced by clone.

NLAISCRIPT::CMethodeName::~CMethodeName   [virtual]
 

Definition at line 299 of file interpret_methodes.cpp.

References _Code, _MethodeName, _TypeOfMethode, and NLAIC::IPointerGestion::release.


Member Function Documentation

const NLAIC::IBasicType * NLAISCRIPT::CMethodeName::clone   const [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 326 of file interpret_methodes.cpp.

References CMethodeName.

IOpCode * NLAISCRIPT::CMethodeName::getCode  
 

Definition at line 371 of file interpret_methodes.cpp.

References _Code.

void NLAISCRIPT::CMethodeName::getDebugString std::string &    const [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 388 of file interpret_methodes.cpp.

References _MethodeName, _Param, NLAIAGENT::IVarName::getString, and t.

const NLAIAGENT::IVarName & NLAISCRIPT::CMethodeName::getName   const
 

Definition at line 348 of file interpret_methodes.cpp.

References _MethodeName.

CParam & NLAISCRIPT::CMethodeName::getParam  
 

Definition at line 361 of file interpret_methodes.cpp.

References _Param.

const NLAIC::CIdentType & NLAISCRIPT::CMethodeName::getType   const [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 429 of file interpret_methodes.cpp.

References IdMethodeName.

const IOpType * NLAISCRIPT::CMethodeName::getTypeOfMethode   const
 

Definition at line 383 of file interpret_methodes.cpp.

References _TypeOfMethode.

bool NLAISCRIPT::CMethodeName::isEqual const NLAIAGENT::IBasicObjectIA   const [virtual]
 

Definition at line 418 of file interpret_methodes.cpp.

void NLAISCRIPT::CMethodeName::load NLMISC::IStream   [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 404 of file interpret_methodes.cpp.

References _Code, _MethodeName, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIC::IPointerGestion::incRef, NLAIC::IBasicInterface::load, and NLMISC::IStream::serial.

const NLAIC::IBasicType * NLAISCRIPT::CMethodeName::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 332 of file interpret_methodes.cpp.

References CMethodeName.

const NLAIAGENT::IObjectIA::CProcessResult & NLAISCRIPT::CMethodeName::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 424 of file interpret_methodes.cpp.

References NLAIAGENT::IObjectIA::ProcessRun.

void NLAISCRIPT::CMethodeName::save NLMISC::IStream   [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 395 of file interpret_methodes.cpp.

References _Code, _MethodeName, NLAIC::IBasicType::getType, NLAIC::IBasicInterface::save, and NLMISC::IStream::serial.

void NLAISCRIPT::CMethodeName::setCode IOpCode   c
 

Definition at line 366 of file interpret_methodes.cpp.

References _Code.

void NLAISCRIPT::CMethodeName::setName const NLAIAGENT::IVarName   name
 

Definition at line 339 of file interpret_methodes.cpp.

References _MethodeName, NLAIC::IBasicType::clone, and NLAIC::IPointerGestion::release.

void NLAISCRIPT::CMethodeName::setParam const CParam   p
 

Definition at line 356 of file interpret_methodes.cpp.

References _Param.

void NLAISCRIPT::CMethodeName::setTypeOfMethode IOpType  
 

Definition at line 376 of file interpret_methodes.cpp.

References _TypeOfMethode, and id.


Member Data Documentation

IOpCode* NLAISCRIPT::CMethodeName::_Code [private]
 

op code pointer for run method.

Definition at line 142 of file interpret_methodes.h.

Referenced by CMethodeName, getCode, load, save, setCode, and ~CMethodeName.

NLAIAGENT::IVarName* NLAISCRIPT::CMethodeName::_MethodeName [private]
 

Name of the method.

Definition at line 140 of file interpret_methodes.h.

Referenced by CMethodeName, getDebugString, getName, load, save, setName, and ~CMethodeName.

CParam NLAISCRIPT::CMethodeName::_Param [private]
 

_Param is the rgument of the method.

Definition at line 144 of file interpret_methodes.h.

Referenced by getDebugString, getParam, and setParam.

IOpType* NLAISCRIPT::CMethodeName::_TypeOfMethode [private]
 

Type of return expression.

Definition at line 146 of file interpret_methodes.h.

Referenced by CMethodeName, getTypeOfMethode, setTypeOfMethode, and ~CMethodeName.

const NLAIC::CIdentType NLAISCRIPT::CMethodeName::IdMethodeName [static]
 

Referenced by getType.


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