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

#include <cJSXClass.h>

Inheritance diagram for GrayJS::cJSXClass:
Gray::cRefBase IUnknown

Public Member Functions

 cJSXClass (const cScriptableInterfaceDef *pInterfaceDef)
 
virtual ~cJSXClass ()
 
SCRIPTINTERFACEID_t get_HashCode () const noexcept
 
cString get_Name () const
 
JSClass * get_JSClass () const
 
cJSObjectGetJSObjProto (cJSContext *pjsCx)
 
const cScriptableInterfaceDefget_InterfaceDef () const
 
const cScriptablePropGetPropPtr (int i) const
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 

Public Attributes

cNewPtr< JSPropertySpec > m_ajsProps
 array of props. NOT exactly Equiv to m_aPropsAll More...
 
cNewPtr< JSFunctionSpec > m_ajsFunctions
 NOT exactly Equiv to m_aMethodsAll. More...
 

Detailed Description

Define a class/interface for exposure to JavaScript. associate a JSClass and cScriptableInterfaceDef

Constructor & Destructor Documentation

◆ cJSXClass()

GrayJS::cJSXClass::cJSXClass ( const cScriptableInterfaceDef pInterfaceDef)

◆ ~cJSXClass()

GrayJS::cJSXClass::~cJSXClass ( )
virtual

Member Function Documentation

◆ get_HashCode()

SCRIPTINTERFACEID_t GrayJS::cJSXClass::get_HashCode ( ) const
inlinenoexcept

◆ get_InterfaceDef()

const cScriptableInterfaceDef* GrayJS::cJSXClass::get_InterfaceDef ( ) const
inline

◆ get_JSClass()

JSClass* GrayJS::cJSXClass::get_JSClass ( ) const
inline

◆ get_Name()

cString GrayJS::cJSXClass::get_Name ( ) const

◆ GetJSObjProto()

cJSObject * GrayJS::cJSXClass::GetJSObjProto ( cJSContext pjsCx)

◆ GetPropPtr()

const cScriptableProp* GrayJS::cJSXClass::GetPropPtr ( int  i) const
inline

enum the defined props for a class.

Member Data Documentation

◆ m_ajsFunctions

cNewPtr<JSFunctionSpec> GrayJS::cJSXClass::m_ajsFunctions

NOT exactly Equiv to m_aMethodsAll.

◆ m_ajsProps

cNewPtr<JSPropertySpec> GrayJS::cJSXClass::m_ajsProps

array of props. NOT exactly Equiv to m_aPropsAll


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