#include <script_debug_source.h>
Inheritance diagram for NLAISCRIPT::CScriptDebugSourceMemory:
Nevrax France
Definition at line 111 of file script_debug_source.h.
Public Member Functions | |
const NLAIC::IBasicType * | clone () const |
CScriptDebugSourceMemory (const char *sourceName, const char *code) | |
Constructor. | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual void | getDebugString (std::string &) const |
virtual const std::string | getInfo () |
const sint32 & | getRef () const |
get the refence count. | |
std::string | getSourceBuffer () const |
Return the entire source buffer. | |
virtual std::string | getSourceName () const |
Return a name for the script source. | |
const NLAIC::CIdentType & | getType () const |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
void | load (NLMISC::IStream &) |
Load the class from a stream. | |
const NLAIC::IBasicType * | newInstance () const |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
void | save (NLMISC::IStream &) |
Save the class in a stream. | |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
Static Public Attributes | |
const NLAIC::CIdentType | IdScriptDebugSourceMemory |
Protected Attributes | |
std::string | _SourceName |
Private Attributes | |
std::string | _Code |
|
Constructor.
Definition at line 135 of file script_debug_source.cpp. Referenced by clone(), and newInstance().
00135 : 00136 IScriptDebugSource(sourceName) 00137 { 00138 _Code = code; 00139 } |
|
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.
00167 { 00168 NLAIC::IBasicType *x = new CScriptDebugSourceMemory(*this); 00169 return x; 00170 } |
|
Decrement the reference of an object.
Definition at line 93 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00094 {
00095 return --_Ref;
00096 }
|
|
Implements NLMISC::IClassable. Reimplemented in NLAIC::CIdentType. Definition at line 116 of file abstract_interface.h. Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().
00117 { 00118 return std::string("<unnamed>"); 00119 } |
|
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.
00179 { 00180 text += "CScriptDebugSourceMemory<"; 00181 text += _SourceName; 00182 text += ">"; 00183 text += "\nValue : "; 00184 text += _Code; 00185 } |
|
Definition at line 292 of file abstract_interface.h. References NLAIC::IBasicType::getDebugString(), and s.
00293 { 00294 std::string s; 00295 getDebugString(s); 00296 return s; 00297 } |
|
get the refence count.
Definition at line 99 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00100 {
00101 return _Ref;
00102 }
|
|
Return the entire source buffer.
Implements NLAISCRIPT::IScriptDebugSource. Definition at line 142 of file script_debug_source.cpp.
00143 { 00144 return _Code; 00145 } |
|
Return a name for the script source.
Definition at line 44 of file script_debug_source.cpp. Referenced by NLAISCRIPT::CCodeBrancheRunDebug::getSourceFileName().
00045 { 00046 return _SourceName; 00047 } |
|
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.
00162 { 00163 return IdScriptDebugSourceMemory; 00164 } |
|
|
Load the class from a stream.
Implements NLAISCRIPT::IScriptDebugSource. Definition at line 155 of file script_debug_source.cpp. References NLMISC::IStream::serial().
|
|
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.
00173 { 00174 NLAIC::IBasicType *x = new CScriptDebugSourceMemory("",""); 00175 return x; 00176 } |
|
|
Save the class in a stream.
Implements NLAISCRIPT::IScriptDebugSource. Definition at line 148 of file script_debug_source.cpp. References NLMISC::IStream::serial().
|
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Definition at line 114 of file script_debug_source.h. |
|
Definition at line 62 of file script_debug_source.h. |
|
Referenced by getType(). |