Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cScriptSourceCurrent.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cScriptSourceCurrent_H
7 #define _INC_cScriptSourceCurrent_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../Scriptable/cScriptableInterface.h"
13 
14 namespace GrayLib
15 {
17  {
25 
26  protected:
28  private:
29  const cScriptSourceCurrent* m_pPrvScriptSource;
30 
31  public:
32  explicit cScriptSourceCurrent( cStringA sScriptSourceKey );
33  virtual ~cScriptSourceCurrent();
34 
35  static const cScriptSourceCurrent* GRAYCALL get_ScriptSourceCurrent();
36 
37  virtual cStringA get_SourceDesc() const
38  {
40  return m_sScriptSourceKey;
41  }
42  void put_ScriptSourceKey( cStringA sScriptSourceKey )
43  {
44  m_sScriptSourceKey = sScriptSourceKey;
45  }
46  };
47 };
48 
49 #endif // _INC_cScriptSourceCurrent_H
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cScriptSourceCurrent.h:17
void put_ScriptSourceKey(cStringA sScriptSourceKey)
Definition: cScriptSourceCurrent.h:42
virtual cStringA get_SourceDesc() const
Definition: cScriptSourceCurrent.h:37
cStringA m_sScriptSourceKey
arbitrary link to the source. (for debugging purposes)
Definition: cScriptSourceCurrent.h:27
Definition: cMesh.h:22