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

Debug informations in the context. More...

#include <context_debug.h>

Inheritance diagram for NLAISCRIPT::CContextDebug:

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

Public Methods

 CContextDebug ()
 Constructor. More...

virtual ~CContextDebug ()
 Destructor. More...

const NLAIC::CIdentTypegetType () const
 Return the class type. More...

const NLAIC::IBasicTypeclone () const
 Return a copy of this object. More...

const NLAIC::IBasicTypenewInstance () const
 Idem as clone. More...

void getDebugString (std::string &dbgStr) const
 Return a debugSting. More...

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

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

bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
 Are two object egals ? More...

const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Run current obect. More...

void stepIndexUp ()
 Incrase the StepIndex. More...

void stepIndexDown ()
 Decrase the StepIndex. More...

uint16 getCallStackTopIndex () const
 Return the index of the last CodebrancheRun in the _CallStack. More...

void callStackPop ()
 Pop the last CodebrancheRun in the _CallStack. More...

void callStackPush (const CCodeBrancheRun *cbr)
 Push a CCodeBrancheRun on the _CallStack. More...

void callStackPrint (NLAIC::IIO *inputOutput) const
 Print the current call stack. More...

void addBreakPoint (uint16 line, const char *fileName)
 Add a BreakPoint. More...

void eraseBreakPoint (uint16 line, const char *fileName)
 Remove a BreakPoint. More...

bool getBreakPointValue (uint16 line, const char *fileName) const
 Return the breakPointValue. More...

void printActiveBeaks (NLAIC::IIO *inputOutput) const
 Liste active breaks. More...

const char * getLastCommandLine () const
 Get the last command Line. More...

void setLastCommandLine (const char *c)
 Store the last command Line. More...

void init ()
 For reinit the context after using. More...

void setDebugMode (TDebugMode dm)
TDebugMode getDebugMode () const
void setStepIndex (uint16 si)
uint16 getStepIndex () const

Public Attributes

bool Active
 Are we in a debug context ? More...

CStackPointerHeapDebug
 Name of the variable on the heap. More...

std::list< NLAIAGENT::IObjectIA * > Param

Static Public Attributes

const NLAIC::CIdentType IdContextDebug

Private Types

typedef std::set< uint16uintSet
typedef std::string mystring

Private Attributes

NLAIAGENT::TProcessStatement _RunState
std::list< const CCodeBrancheRun * > _CallStack
TDebugMode _DebugMode
uint16 _StepIndex
std::map< mystring, uintSet_BreakPointSet
char * _LastCommandLine

Detailed Description

Debug informations in the context.

Author:
Gabriel ROBERT , Nevrax France
Date:
2000

Definition at line 53 of file context_debug.h.


Member Typedef Documentation

typedef std::string NLAISCRIPT::CContextDebug::mystring [private]
 

Definition at line 73 of file context_debug.h.

typedef std::set<uint16> NLAISCRIPT::CContextDebug::uintSet [private]
 

Definition at line 72 of file context_debug.h.


Constructor & Destructor Documentation

NLAISCRIPT::CContextDebug::CContextDebug  
 

Constructor.

Definition at line 32 of file context_debug.cpp.

References _DebugMode, _LastCommandLine, _StepIndex, Active, and NLAISCRIPT::stepByStepMode.

NLAISCRIPT::CContextDebug::~CContextDebug   [virtual]
 

Destructor.

Definition at line 42 of file context_debug.cpp.

References _CallStack, _LastCommandLine, HeapDebug, and Param.


Member Function Documentation

void NLAISCRIPT::CContextDebug::addBreakPoint uint16    line,
const char *    fileName
 

Add a BreakPoint.

Definition at line 130 of file context_debug.cpp.

References _BreakPointSet.

void NLAISCRIPT::CContextDebug::callStackPop  
 

Pop the last CodebrancheRun in the _CallStack.

Definition at line 120 of file context_debug.cpp.

References _CallStack.

void NLAISCRIPT::CContextDebug::callStackPrint NLAIC::IIO   inputOutput const
 

Print the current call stack.

Definition at line 171 of file context_debug.cpp.

References _CallStack, and NLAIC::IIO::Echo.

void NLAISCRIPT::CContextDebug::callStackPush const CCodeBrancheRun   cbr
 

Push a CCodeBrancheRun on the _CallStack.

Definition at line 125 of file context_debug.cpp.

References _CallStack.

const NLAIC::IBasicType * NLAISCRIPT::CContextDebug::clone   const [virtual]
 

Return a copy of this object.

Implements NLAIC::IBasicType.

Definition at line 63 of file context_debug.cpp.

References x.

Referenced by newInstance.

void NLAISCRIPT::CContextDebug::eraseBreakPoint uint16    line,
const char *    fileName
 

Remove a BreakPoint.

Definition at line 147 of file context_debug.cpp.

References _BreakPointSet.

bool NLAISCRIPT::CContextDebug::getBreakPointValue uint16    line,
const char *    fileName
const
 

Return the breakPointValue.

Definition at line 160 of file context_debug.cpp.

References _BreakPointSet.

uint16 NLAISCRIPT::CContextDebug::getCallStackTopIndex   const
 

Return the index of the last CodebrancheRun in the _CallStack.

Definition at line 115 of file context_debug.cpp.

References _CallStack.

TDebugMode NLAISCRIPT::CContextDebug::getDebugMode   const
 

Definition at line 100 of file context_debug.cpp.

References _DebugMode, and NLAISCRIPT::TDebugMode.

void NLAISCRIPT::CContextDebug::getDebugString std::string &    dbgStr const [virtual]
 

Return a debugSting.

Implements NLAIC::IBasicType.

Definition at line 74 of file context_debug.cpp.

const char * NLAISCRIPT::CContextDebug::getLastCommandLine   const
 

Get the last command Line.

Definition at line 221 of file context_debug.cpp.

References _LastCommandLine.

uint16 NLAISCRIPT::CContextDebug::getStepIndex   const
 

Definition at line 110 of file context_debug.cpp.

References _StepIndex.

const NLAIC::CIdentType & NLAISCRIPT::CContextDebug::getType   const [virtual]
 

Return the class type.

Implements NLAIC::IBasicType.

Definition at line 58 of file context_debug.cpp.

References IdContextDebug.

void NLAISCRIPT::CContextDebug::init   [inline]
 

For reinit the context after using.

Definition at line 157 of file context_debug.h.

References _DebugMode, and NLAISCRIPT::stepByStepMode.

bool NLAISCRIPT::CContextDebug::isEqual const NLAIAGENT::IBasicObjectIA   a const
 

Are two object egals ?

Definition at line 86 of file context_debug.cpp.

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

Load the object from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 82 of file context_debug.cpp.

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

Idem as clone.

Implements NLAIC::IBasicType.

Definition at line 69 of file context_debug.cpp.

References clone.

void NLAISCRIPT::CContextDebug::printActiveBeaks NLAIC::IIO   inputOutput const
 

Liste active breaks.

Definition at line 203 of file context_debug.cpp.

References _BreakPointSet, and NLAIC::IIO::Echo.

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

Run current obect.

Implements NLAIAGENT::IObjectIA.

Definition at line 91 of file context_debug.cpp.

References NLAIAGENT::IObjectIA::ProcessRun.

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

Save the object in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 78 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::setDebugMode TDebugMode    dm
 

Definition at line 95 of file context_debug.cpp.

References _DebugMode, and NLAISCRIPT::TDebugMode.

void NLAISCRIPT::CContextDebug::setLastCommandLine const char *    c
 

Store the last command Line.

Definition at line 226 of file context_debug.cpp.

References _LastCommandLine.

void NLAISCRIPT::CContextDebug::setStepIndex uint16    si
 

Definition at line 105 of file context_debug.cpp.

References _StepIndex.

void NLAISCRIPT::CContextDebug::stepIndexDown  
 

Decrase the StepIndex.

Definition at line 195 of file context_debug.cpp.

References _StepIndex.

void NLAISCRIPT::CContextDebug::stepIndexUp  
 

Incrase the StepIndex.

Definition at line 187 of file context_debug.cpp.

References _CallStack, and _StepIndex.


Member Data Documentation

std::map<mystring, uintSet> NLAISCRIPT::CContextDebug::_BreakPointSet [private]
 

Definition at line 74 of file context_debug.h.

Referenced by addBreakPoint, eraseBreakPoint, getBreakPointValue, and printActiveBeaks.

std::list<const CCodeBrancheRun*> NLAISCRIPT::CContextDebug::_CallStack [private]
 

Definition at line 69 of file context_debug.h.

Referenced by callStackPop, callStackPrint, callStackPush, getCallStackTopIndex, stepIndexUp, and ~CContextDebug.

TDebugMode NLAISCRIPT::CContextDebug::_DebugMode [private]
 

Definition at line 70 of file context_debug.h.

Referenced by CContextDebug, getDebugMode, init, and setDebugMode.

char* NLAISCRIPT::CContextDebug::_LastCommandLine [private]
 

Definition at line 75 of file context_debug.h.

Referenced by CContextDebug, getLastCommandLine, setLastCommandLine, and ~CContextDebug.

NLAIAGENT::TProcessStatement NLAISCRIPT::CContextDebug::_RunState [private]
 

Definition at line 68 of file context_debug.h.

uint16 NLAISCRIPT::CContextDebug::_StepIndex [private]
 

Definition at line 71 of file context_debug.h.

Referenced by CContextDebug, getStepIndex, setStepIndex, stepIndexDown, and stepIndexUp.

bool NLAISCRIPT::CContextDebug::Active
 

Are we in a debug context ?

Definition at line 59 of file context_debug.h.

Referenced by CContextDebug.

CStackPointer& NLAISCRIPT::CContextDebug::HeapDebug
 

Name of the variable on the heap.

Definition at line 62 of file context_debug.h.

Referenced by ~CContextDebug.

const NLAIC::CIdentType NLAISCRIPT::CContextDebug::IdContextDebug [static]
 

Referenced by getType.

std::list<NLAIAGENT::IObjectIA *> NLAISCRIPT::CContextDebug::Param
 

Definition at line 65 of file context_debug.h.

Referenced by ~CContextDebug.


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