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

Same as AddOpCode, but help to keep a trace of the varname for debug. More...

#include <opcode.h>

Inheritance diagram for NLAISCRIPT::CAffOpCodeDebug:

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

Public Methods

 CAffOpCodeDebug (int i, const char *varName)
virtual ~CAffOpCodeDebug ()
NLAIAGENT::TProcessStatement runOpCode (CCodeContext &context)
 Computation of the op-code with a given context. More...

void getDebugResult (std::string &str, CCodeContext &context) const
 gets debug string from the op-code. More...

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

void getDebugString (char *) const
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 IdAffOpCodeDebug

Private Attributes

int _I
char * _VarName

Detailed Description

Same as AddOpCode, but help to keep a trace of the varname for debug.

Definition at line 1016 of file opcode.h.


Constructor & Destructor Documentation

NLAISCRIPT::CAffOpCodeDebug::CAffOpCodeDebug int    i,
const char *    varName
 

Definition at line 399 of file opcode.cpp.

References _VarName.

Referenced by clone.

NLAISCRIPT::CAffOpCodeDebug::~CAffOpCodeDebug   [virtual]
 

Definition at line 407 of file opcode.cpp.

References _VarName.


Member Function Documentation

const NLAIC::IBasicType * NLAISCRIPT::CAffOpCodeDebug::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 477 of file opcode.cpp.

References _I, _VarName, CAffOpCodeDebug, and x.

Referenced by newInstance.

void NLAISCRIPT::CAffOpCodeDebug::getDebugResult std::string &    str,
CCodeContext   context
const [virtual]
 

gets debug string from the op-code.

Implements NLAISCRIPT::IOpCode.

Definition at line 470 of file opcode.cpp.

References _I, and NLAIC::stringGetBuild.

void NLAISCRIPT::CAffOpCodeDebug::getDebugString char *    const
 

Definition at line 492 of file opcode.cpp.

const NLAIC::CIdentType & NLAISCRIPT::CAffOpCodeDebug::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 487 of file opcode.cpp.

References IdAffOpCodeDebug.

void NLAISCRIPT::CAffOpCodeDebug::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 502 of file opcode.cpp.

References _I, _VarName, and NLMISC::IStream::serial.

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

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

Implements NLAIC::IBasicType.

Definition at line 482 of file opcode.cpp.

References clone.

NLAIAGENT::TProcessStatement NLAISCRIPT::CAffOpCodeDebug::runOpCode CCodeContext   context [virtual]
 

Computation of the op-code with a given context.

Implements NLAISCRIPT::IOpCode.

Definition at line 449 of file opcode.cpp.

References _I, _VarName, NLAIC::IPointerGestion::incRef, and NLAIC::IPointerGestion::release.

void NLAISCRIPT::CAffOpCodeDebug::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 494 of file opcode.cpp.

References _I, _VarName, s, and NLMISC::IStream::serial.


Member Data Documentation

int NLAISCRIPT::CAffOpCodeDebug::_I [private]
 

Definition at line 1022 of file opcode.h.

Referenced by clone, getDebugResult, load, runOpCode, and save.

char* NLAISCRIPT::CAffOpCodeDebug::_VarName [private]
 

Definition at line 1023 of file opcode.h.

Referenced by CAffOpCodeDebug, clone, load, runOpCode, save, and ~CAffOpCodeDebug.

const NLAIC::CIdentType NLAISCRIPT::CAffOpCodeDebug::IdAffOpCodeDebug [static]
 

Initial value:

Definition at line 124 of file opcode_register.cpp.

Referenced by getType.


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