Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cScriptSourceCurrent Class Reference

#include <cScriptSourceCurrent.h>

Inheritance diagram for GrayLib::cScriptSourceCurrent:
GrayLib::cScriptSourceSQLStatement GrayLib::cScriptSourceSection

Public Member Functions

 cScriptSourceCurrent (cStringA sScriptSourceKey)
 
virtual ~cScriptSourceCurrent ()
 
virtual cStringA get_SourceDesc () const
 
void put_ScriptSourceKey (cStringA sScriptSourceKey)
 

Static Public Member Functions

static const cScriptSourceCurrent *GRAYCALL get_ScriptSourceCurrent ()
 

Protected Attributes

cStringA m_sScriptSourceKey
 arbitrary link to the source. (for debugging purposes) More...
 

Detailed Description

Track the current script source (on this thread) for a scriptable data source. for debug logging of failures. can be resource object, script section/line cScriptSection or database/table cSQLStatementQ or other. Keep separate from cExpressionContext or cScriptContext even though they are somewhat similar. This is usually based on IScriptableEnumerator. Thread Safe.

Note
This should ONLY be stack based !

Constructor & Destructor Documentation

◆ cScriptSourceCurrent()

GrayLib::cScriptSourceCurrent::cScriptSourceCurrent ( cStringA  sScriptSourceKey)
explicit

◆ ~cScriptSourceCurrent()

GrayLib::cScriptSourceCurrent::~cScriptSourceCurrent ( )
virtual

Member Function Documentation

◆ get_ScriptSourceCurrent()

const cScriptSourceCurrent * GrayLib::cScriptSourceCurrent::get_ScriptSourceCurrent ( )
static

Are we in the process or reading some script? if so which one?

◆ get_SourceDesc()

virtual cStringA GrayLib::cScriptSourceCurrent::get_SourceDesc ( ) const
inlinevirtual

< For error reporting/debugging describe the source of the script.

Reimplemented in GrayLib::cScriptSourceSQLStatement, and GrayLib::cScriptSourceSection.

◆ put_ScriptSourceKey()

void GrayLib::cScriptSourceCurrent::put_ScriptSourceKey ( cStringA  sScriptSourceKey)
inline

Member Data Documentation

◆ m_sScriptSourceKey

cStringA GrayLib::cScriptSourceCurrent::m_sScriptSourceKey
protected

arbitrary link to the source. (for debugging purposes)


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