# 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::CCallPrint Class Reference

Class CCallPrint. More...

#include <libcode.h>

Inheritance diagram for NLAISCRIPT::CCallPrint:

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

Public Methods

 CCallPrint ()
NLAIAGENT::IObjectIA::CProcessResult format (const NLAIAGENT::IBaseGroupType *g)
 Returns the const NLAIAGENT::IBaseGroupType * as an formated string. More...

NLAIAGENT::IObjectIA::CProcessResult printList (const NLAIAGENT::IBaseGroupType *g)
 Print the contents of the NLAIAGENT::IBaseGroupType. More...

virtual ~CCallPrint ()
NLAIAGENT::IObjectIA method.
virtual sint32 isClassInheritedFrom (const NLAIAGENT::IVarName &) const
virtual NLAIAGENT::tQueue isMember (const NLAIAGENT::IVarName *className, const NLAIAGENT::IVarName *mathodName, const NLAIAGENT::IObjectIA &) const
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32 heritance, sint32 index, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

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

const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...

bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
NLAIC::IBasicInterface method.
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...

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

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

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

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


Static Public Attributes

const NLAIC::CIdentType IdCallPrint
NLAIC::IIOinputOutput = NULL

Detailed Description

Class CCallPrint.

This class allows to print and formated string. In the script its define the print('string',objects, ...); expression

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 40 of file libcode.h.


Constructor & Destructor Documentation

NLAISCRIPT::CCallPrint::CCallPrint   [inline]
 

Definition at line 49 of file libcode.h.

Referenced by clone.

virtual NLAISCRIPT::CCallPrint::~CCallPrint   [inline, virtual]
 

Definition at line 107 of file libcode.h.


Member Function Documentation

const NLAIC::IBasicType* NLAISCRIPT::CCallPrint::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 76 of file libcode.h.

References CCallPrint, and x.

Referenced by newInstance.

NLAIAGENT::IObjectIA::CProcessResult NLAISCRIPT::CCallPrint::format const NLAIAGENT::IBaseGroupType   g
 

Returns the const NLAIAGENT::IBaseGroupType * as an formated string.

Definition at line 105 of file libcode.cpp.

References NLAIAGENT::CStringType::clone, NLAIAGENT::IBaseGroupType::getConstIterator, NLAIAGENT::CConstIteratorContener::isInEnd, r, NLAIAGENT::IObjectIA::CProcessResult::Result, NLAIAGENT::IObjectIA::CProcessResult::ResultState, and s.

Referenced by isMember, and runMethodeMember.

virtual void NLAISCRIPT::CCallPrint::getDebugString std::string &    t 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 92 of file libcode.h.

References t.

const NLAIC::CIdentType& NLAISCRIPT::CCallPrint::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 87 of file libcode.h.

virtual sint32 NLAISCRIPT::CCallPrint::isClassInheritedFrom const NLAIAGENT::IVarName   const [inline, virtual]
 

Definition at line 56 of file libcode.h.

bool NLAISCRIPT::CCallPrint::isEqual const NLAIAGENT::IBasicObjectIA   a const [inline]
 

Definition at line 65 of file libcode.h.

NLAIAGENT::tQueue NLAISCRIPT::CCallPrint::isMember const NLAIAGENT::IVarName   className,
const NLAIAGENT::IVarName   mathodName,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Definition at line 43 of file libcode.cpp.

References _CONSTRUCTOR_, NLAISCRIPT::COperandVoid::clone, NLAISCRIPT::COperandSimple::clone, format, IdCallPrint, NLAIAGENT::CStringType::IdStringType, param, and t.

void NLAISCRIPT::CCallPrint::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 102 of file libcode.h.

const NLAIC::IBasicType* NLAISCRIPT::CCallPrint::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 82 of file libcode.h.

References clone.

NLAIAGENT::IObjectIA::CProcessResult NLAISCRIPT::CCallPrint::printList const NLAIAGENT::IBaseGroupType   g
 

Print the contents of the NLAIAGENT::IBaseGroupType.

Definition at line 124 of file libcode.cpp.

References NLAIAGENT::IBaseGroupType::getConstIterator, NLAIAGENT::CConstIteratorContener::isInEnd, NLAIC::Out, r, NLAIAGENT::IObjectIA::CProcessResult::Result, and NLAIAGENT::IObjectIA::CProcessResult::ResultState.

Referenced by runMethodeMember.

const NLAIAGENT::IObjectIA::CProcessResult& NLAISCRIPT::CCallPrint::run   [inline, virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 64 of file libcode.h.

References NLAIAGENT::IObjectIA::ProcessRun.

NLAIAGENT::IObjectIA::CProcessResult NLAISCRIPT::CCallPrint::runMethodeMember sint32    index,
NLAIAGENT::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 161 of file libcode.cpp.

References format, index, param, printList, r, NLAIAGENT::IObjectIA::CProcessResult::Result, and NLAIAGENT::IObjectIA::CProcessResult::ResultState.

NLAIAGENT::IObjectIA::CProcessResult NLAISCRIPT::CCallPrint::runMethodeMember sint32    heritance,
sint32    index,
NLAIAGENT::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 147 of file libcode.cpp.

References index, param, r, NLAIAGENT::IObjectIA::CProcessResult::Result, and NLAIAGENT::IObjectIA::CProcessResult::ResultState.

void NLAISCRIPT::CCallPrint::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 97 of file libcode.h.


Member Data Documentation

const NLAIC::CIdentType NLAISCRIPT::CCallPrint::IdCallPrint [static]
 

Initial value:

Definition at line 37 of file libcode.cpp.

Referenced by isMember.

NLAIC::IIO * NLAISCRIPT::CCallPrint::inputOutput = NULL [static]
 

Definition at line 41 of file libcode.cpp.

Referenced by NLAIAGENT::CAgentScript::callConstructor, NLAIAGENT::CAgentScript::callFunction, and NLAISCRIPT::CAgentClass::initStatics.


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