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

#include <cXProtocol.h>

Inheritance diagram for GrayLib::cXProtocolDataMgr:
GrayLib::cXProtocolFactory

Public Member Functions

 cXProtocolDataMgr ()
 
virtual ~cXProtocolDataMgr ()
 
virtual cScriptableInterfaceDefFindInterfaceDef (cXObject *pObj, SCRIPTINTERFACEID_t bInterfaceID)
 
virtual cXObjectPtr FindXObj (UID_t uid, SCRIPTINTERFACEID_t bInterfaceID=SCRIPTINTERFACEID_MAX, cScriptableInterfaceDef **ppInterfaceDef=nullptr)
 

Public Attributes

cStringF m_sFileRootDir
 This is the virtual root for this server. XPROTO_File (as the other side is concerned, unless onReq_File is overridden) More...
 

Detailed Description

Manage XProtocol access to the cXObject system. Maybe Singleton? For both client and server, so not IProtocolFactory based.

Constructor & Destructor Documentation

◆ cXProtocolDataMgr()

GrayLib::cXProtocolDataMgr::cXProtocolDataMgr ( )

◆ ~cXProtocolDataMgr()

GrayLib::cXProtocolDataMgr::~cXProtocolDataMgr ( )
virtual

Member Function Documentation

◆ FindInterfaceDef()

cScriptableInterfaceDef * GrayLib::cXProtocolDataMgr::FindInterfaceDef ( cXObject pObj,
SCRIPTINTERFACEID_t  bInterfaceID 
)
virtual

Override this to find the interface definition on the client side.

Note
bInterfaceID on both client and server must match exactly.

◆ FindXObj()

cXObjectPtr GrayLib::cXProtocolDataMgr::FindXObj ( UID_t  uid,
SCRIPTINTERFACEID_t  bInterfaceID = SCRIPTINTERFACEID_MAX,
cScriptableInterfaceDef **  ppInterfaceDef = nullptr 
)
virtual

Get the object by its UID, so we can mess with its props/methods. Override this to find the object on the client side. bInterfaceID = SCRIPTINTERFACEID_MAX = just get the main interface for the object. Associate bInterfaceID with the object if we didn't already know that ?

Member Data Documentation

◆ m_sFileRootDir

cStringF GrayLib::cXProtocolDataMgr::m_sFileRootDir

This is the virtual root for this server. XPROTO_File (as the other side is concerned, unless onReq_File is overridden)


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