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

CScriptDebugSourceFile is an IScriptDebugSource where the source code come from a file. More...

#include <script_debug_source.h>

Inheritance diagram for NLAISCRIPT::CScriptDebugSourceFile:

NLAISCRIPT::IScriptDebugSource NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CScriptDebugSourceFile (const char *sourceName, bool file=true)
 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 IdScriptDebugSourceFile

Private Attributes

std::string MemoryScript
bool isMemory

Detailed Description

CScriptDebugSourceFile is an IScriptDebugSource where the source code come from a file.

Author:
Gabriel ROBERT , Nevrax France
Date:
2001

Definition at line 72 of file script_debug_source.h.


Constructor & Destructor Documentation

NLAISCRIPT::CScriptDebugSourceFile::CScriptDebugSourceFile const char *    sourceName,
bool    file = true
 

Constructor.

Definition at line 56 of file script_debug_source.cpp.

References file, and MemoryScript.

Referenced by clone, and newInstance.


Member Function Documentation

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

References CScriptDebugSourceFile, and x.

void NLAISCRIPT::CScriptDebugSourceFile::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 121 of file script_debug_source.cpp.

References NLAISCRIPT::IScriptDebugSource::_SourceName.

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

Return the entire source buffer.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 63 of file script_debug_source.cpp.

References NLAISCRIPT::IScriptDebugSource::_SourceName, isMemory, and MemoryScript.

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

References IdScriptDebugSourceFile.

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

Load the class from a stream.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 99 of file script_debug_source.cpp.

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

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

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

Implements NLAIC::IBasicType.

Definition at line 115 of file script_debug_source.cpp.

References CScriptDebugSourceFile, and x.

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

Save the class in a stream.

Implements NLAISCRIPT::IScriptDebugSource.

Definition at line 93 of file script_debug_source.cpp.

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


Member Data Documentation

const NLAIC::CIdentType NLAISCRIPT::CScriptDebugSourceFile::IdScriptDebugSourceFile [static]
 

Referenced by getType.

bool NLAISCRIPT::CScriptDebugSourceFile::isMemory [private]
 

Definition at line 79 of file script_debug_source.h.

Referenced by getSourceBuffer.

std::string NLAISCRIPT::CScriptDebugSourceFile::MemoryScript [private]
 

Definition at line 78 of file script_debug_source.h.

Referenced by CScriptDebugSourceFile, and getSourceBuffer.


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