Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cJSXContext.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cJSXContext_H
6 #define _INC_cJSXContext_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "GrayJSX.h"
12 
13 namespace GrayJS
14 {
16  {
20 
21  private:
22  cJSContext* m_pjsCx;
23 
24  public:
25  cJSXContext();
26  virtual ~cJSXContext();
27 
28  bool InitContext();
29  void DestroyContext();
30 
32  {
33  return m_pjsCx;
34  }
35 
36  // who is the current owner of the JS context? similar to cScriptContext
37  // cVariant m_vPropLast;
38  };
40 };
41 
42 #endif // _INC_cJSXContext_H
#define GRAYJS_LINK
Definition: GrayJSX.h:27
Definition: cJSObject.h:56
Definition: cJSXContext.h:16
cJSContext * get_JSCx() const
Definition: cJSXContext.h:31
Definition: cRefPtr.h:22
Definition: cJSObject.h:36
cRefPtr< cJSXContext > cJSXContextPtr
Definition: cJSXContext.h:39