Fovia's C++ Client/Server API
Macros
bcomprep.h File Reference

Macros

#define BCOM_DECLARE_BASE_INTERFACE(inter)   struct inter
 
#define BCOM_DECLARE_INTERFACE(inter, base)   struct inter : public base
 
#define BCOM_INLINE   inline
 
#define BCOM_METHOD(type, method)   virtual type BCOM_METHOD_CALLTYPE method
 
#define BCOM_PURE   =0
 
#define BCOM_REF_COUNTING()
 
#define BCOM_THIS
 
#define BCOM_THIS_
 
#define DECLARE_BCLSID(x)   EXTERN_C const BGUID CLSID_##x
 
#define DECLARE_BIID(x)   EXTERN_C const BGUID IID_##x
 
#define DEFINE_BCLSID(x,guid)   static const BGUID CLSID_##x = guid_from_string(guid)
 
#define DEFINE_BGUID_INIT(x, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)   static const struct BGUID x = {l, w1, w2, {b1, b2, b3, b4, b5, b6, b7, b8}};
 
#define DEFINE_BIID(x,guid)   static const BGUID IID_##x = guid_from_string(guid)
 
#define GET_INTERFACE_BGUID(x)   GetInterfaceBGUID<x>(0)
 
#define GET_INTERFACE_BGUID_FUNC(x)   template<> BCOM_INLINE const BGUID* GetInterfaceBGUID(x *) { return &IID_##x; }
 
#define IMPLEMENT_GET_INTERFACE_BGUID(x, guid)   DEFINE_BIID( x, guid)
 
#define IMPLEMENT_OBJECT_BCLSID(x, guid)   DEFINE_BCLSID( x, guid)