# 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:

NLAISCRIPT::IScriptDebugSource NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable 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...

virtual void getDebugString (std::string &) 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:
Gabriel ROBERT , Nevrax France
Date:
2001

Definition at line 111 of file script_debug_source.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 135 of file script_debug_source.cpp.

References _Code.

Referenced by clone, and newInstance.


Member Function Documentation

const NLAIC::IBasicType * NLAISCRIPT::CScriptDebugSourceMemory::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 166 of file script_debug_source.cpp.

References CScriptDebugSourceMemory, and x.

void NLAISCRIPT::CScriptDebugSourceMemory::getDebugString std::string &    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.

Implements NLAIC::IBasicType.

Definition at line 178 of file script_debug_source.cpp.

References _Code, and NLAISCRIPT::IScriptDebugSource::_SourceName.

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

Return the entire source buffer.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 142 of file script_debug_source.cpp.

References _Code.

const NLAIC::CIdentType & NLAISCRIPT::CScriptDebugSourceMemory::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 161 of file script_debug_source.cpp.

References IdScriptDebugSourceMemory.

void NLAISCRIPT::CScriptDebugSourceMemory::load NLMISC::IStream   [virtual]
 

Load the class from a stream.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 155 of file script_debug_source.cpp.

References _Code, NLAISCRIPT::IScriptDebugSource::_SourceName, and NLMISC::IStream::serial.

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

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

Implements NLAIC::IBasicType.

Definition at line 172 of file script_debug_source.cpp.

References CScriptDebugSourceMemory, and x.

void NLAISCRIPT::CScriptDebugSourceMemory::save NLMISC::IStream   [virtual]
 

Save the class in a stream.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 148 of file script_debug_source.cpp.

References _Code, NLAISCRIPT::IScriptDebugSource::_SourceName, and NLMISC::IStream::serial.


Member Data Documentation

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

Definition at line 114 of file script_debug_source.h.

Referenced by CScriptDebugSourceMemory, getDebugString, getSourceBuffer, load, and save.

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

Referenced by getType.


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