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

CScriptDebugSourceMemory is an IScriptDebugSource where the source code come from memory. More...

#include <script_debug_source.h>

Inheritance diagram for NLAISCRIPT::CScriptDebugSourceMemory

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

Collaboration graph
[legend]
List of all members.

Public Methods

 CScriptDebugSourceMemory (const char* sourceName, const char* code)
 Constructor. More...

std::string getSourceBuffer () const
 Return the entire source buffer. More...

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

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

const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. 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...

void getDebugString (char *text) 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...


Static Public Attributes

const NLAIC::CIdentType IdScriptDebugSourceMemory

Private Attributes

std::string _Code

Detailed Description

CScriptDebugSourceMemory is an IScriptDebugSource where the source code come from memory.

Author(s):
Gabriel ROBERT , Nevrax France
Date:
2001

Definition at line 107 of file script_debug_source.h.


Constructor & Destructor Documentation

NLAISCRIPT::CScriptDebugSourceMemory::CScriptDebugSourceMemory ( const char * sourceName,
const char * code )
 

Constructor.

Definition at line 129 of file script_debug_source.cpp.


Member Function Documentation

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

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIC::IBasicType.

Definition at line 160 of file script_debug_source.cpp.

void NLAISCRIPT::CScriptDebugSourceMemory::getDebugString ( char * t ) 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.

Reimplemented from NLAIC::IBasicType.

Definition at line 172 of file script_debug_source.cpp.

std::string NLAISCRIPT::CScriptDebugSourceMemory::getSourceBuffer ( ) const [virtual]
 

Return the entire source buffer.

Reimplemented from NLAISCRIPT::IScriptDebugSource.

Definition at line 136 of file script_debug_source.cpp.

const NLAIC::CIdentType & NLAISCRIPT::CScriptDebugSourceMemory::getType ( void ) 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).

Reimplemented from NLAIC::IBasicType.

Definition at line 155 of file script_debug_source.cpp.

void NLAISCRIPT::CScriptDebugSourceMemory::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAISCRIPT::IScriptDebugSource.

Definition at line 149 of file script_debug_source.cpp.

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

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

Reimplemented from NLAIC::IBasicType.

Definition at line 166 of file script_debug_source.cpp.

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

Save the class in a stream.

Reimplemented from NLAISCRIPT::IScriptDebugSource.

Definition at line 142 of file script_debug_source.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAISCRIPT::CScriptDebugSourceMemory::IdScriptDebugSourceMemory [static]
 

Definition at line 112 of file script_debug_source.h.

std::string NLAISCRIPT::CScriptDebugSourceMemory::_Code [private]
 

Definition at line 110 of file script_debug_source.h.


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