# 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

Inheritance graph
[legend]
Collaboration diagram for NLAISCRIPT::CContextDebug:

Collaboration graph
[legend]
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 (char* 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(s):
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.

NLAISCRIPT::CContextDebug::~CContextDebug ( ) [virtual]
 

Destructor.

Definition at line 42 of file context_debug.cpp.


Member Function Documentation

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

Add a BreakPoint.

Definition at line 130 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::callStackPop ( )
 

Pop the last CodebrancheRun in the _CallStack.

Definition at line 120 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::callStackPrint ( NLAIC::IIO * inputOutput ) const
 

Print the current call stack.

Definition at line 171 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::callStackPush ( const CCodeBrancheRun * cbr )
 

Push a CCodeBrancheRun on the _CallStack.

Definition at line 125 of file context_debug.cpp.

const NLAIC::IBasicType * NLAISCRIPT::CContextDebug::clone ( void ) const [virtual]
 

Return a copy of this object.

Reimplemented from NLAIC::IBasicType.

Definition at line 63 of file context_debug.cpp.

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

Remove a BreakPoint.

Definition at line 147 of file context_debug.cpp.

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

Return the breakPointValue.

Definition at line 160 of file context_debug.cpp.

uint16 NLAISCRIPT::CContextDebug::getCallStackTopIndex ( ) const
 

Return the index of the last CodebrancheRun in the _CallStack.

Definition at line 115 of file context_debug.cpp.

TDebugMode NLAISCRIPT::CContextDebug::getDebugMode ( ) const
 

Definition at line 100 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::getDebugString ( char * dbgStr ) const [virtual]
 

Return a debugSting.

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

uint16 NLAISCRIPT::CContextDebug::getStepIndex ( ) const
 

Definition at line 110 of file context_debug.cpp.

const NLAIC::CIdentType & NLAISCRIPT::CContextDebug::getType ( void ) const [virtual]
 

Return the class type.

Reimplemented from NLAIC::IBasicType.

Definition at line 58 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::init ( void ) [inline]
 

For reinit the context after using.

Definition at line 157 of file context_debug.h.

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.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 82 of file context_debug.cpp.

const NLAIC::IBasicType * NLAISCRIPT::CContextDebug::newInstance ( void ) const [virtual]
 

Idem as clone.

Reimplemented from NLAIC::IBasicType.

Definition at line 69 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::printActiveBeaks ( NLAIC::IIO * inputOutput ) const
 

Liste active breaks.

Definition at line 203 of file context_debug.cpp.

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

Run current obect.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 91 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::save ( NLMISC::IStream & os ) [virtual]
 

Save the object in a stream.

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

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

Store the last command Line.

Definition at line 226 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::setStepIndex ( uint16 si )
 

Definition at line 105 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::stepIndexDown ( )
 

Decrase the StepIndex.

Definition at line 195 of file context_debug.cpp.

void NLAISCRIPT::CContextDebug::stepIndexUp ( )
 

Incrase the StepIndex.

Definition at line 187 of file context_debug.cpp.


Member Data Documentation

bool NLAISCRIPT::CContextDebug::Active
 

Are we in a debug context ?

Definition at line 59 of file context_debug.h.

CStackPointer & NLAISCRIPT::CContextDebug::HeapDebug
 

Name of the variable on the heap.

Definition at line 62 of file context_debug.h.

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

Definition at line 56 of file context_debug.h.

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

Definition at line 65 of file context_debug.h.

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

Definition at line 74 of file context_debug.h.

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

Definition at line 69 of file context_debug.h.

TDebugMode NLAISCRIPT::CContextDebug::_DebugMode [private]
 

Definition at line 70 of file context_debug.h.

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

Definition at line 75 of file context_debug.h.

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.


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