13#define WIN32_LEAN_AND_MEAN
16#pragma warning(disable:4786)
17#pragma warning( disable : 4800)
26#define VCOM_SUCCEEDED(x) (x==0)
27#define VCOM_FAILED(x) (x != kVCOMError_NoError)
32#define __PrintDebugValue__(x, y) std::cout << #x << " " << #y <<" Failed!" << std::endl
33#define __PrintDebugValue2__(x) std::cout << #x << " Failed!" << std::endl
35#define ASSERTN(x,y) if(!(y)) { __PrintDebugValue__(x, y); }
36#define DSTOP(params) { __PrintDebugValue2__(params); }
37#define VERIFYN(x,y) (!(y))
38#define VWFC_ASSERT(x) if(!(x)) { __PrintDebugValue2__(x); }
39#define THROW_VWFC_EXCEPTION(x,y,z ) { __PrintDebugValue__(x, z); }
42#define kMCCoordTypes "2"
54#if (INTPTR_MAX == INT32_MAX)
88#ifdef DONT_USE_XERCES_AS_XMLLIB
112 #define GS_HIDDEN_VISIBILITY
114 #ifdef EXPORT_SYMBOLS
115 #define GS_HIDDEN_VISIBILITY __declspec(dllexport)
117 #define GS_HIDDEN_VISIBILITY __declspec(dllimport)
121#define WIN32_LEAN_AND_MEAN
126#define GS_HIDDEN_VISIBILITY
129#define GS_HIDDEN_VISIBILITY __attribute__((visibility("default")))
133#define VW_EXPORT GS_HIDDEN_VISIBILITY
136typedef uint32_t RefNumType;
141template<
class Interface>
class VCOMImmediateImpl :
public Interface
144 VCOMImmediateImpl() { fRefCnt = 0; fParent = NULL; }
145 VCOMImmediateImpl(
IVWUnknown* parent) { fRefCnt = 0; fParent = parent;
if ( fParent ) { fParent->AddRef(); } }
146 virtual ~VCOMImmediateImpl() { }
150 virtual uint32_t
VCOM_CALLTYPE AddRef() { fRefCnt++;
return fRefCnt; }
158 if ( fRefCnt == 0 ) {
159 this->OnRefCountZero();
171 virtual void OnRefCountZero()
174 { fParent->Release(); }
184template<
class Interface>
class VCOMImpl :
public Interface
187 VCOMImpl() { fRefCnt = 0; fParent = NULL; }
188 VCOMImpl(IVWUnknown* parent) { fRefCnt = 0; fParent = parent;
if ( fParent ) { fParent->AddRef(); } }
189 virtual ~VCOMImpl() { }
193 virtual uint32_t
VCOM_CALLTYPE AddRef() { fRefCnt++;
return fRefCnt; }
200 if ( fRefCnt == 0 ) {
210 virtual void OnRefCountZero()
213 { fParent->Release(); }
std::vector< VectorworksMVR::GdtfDefines::DMXAddress > TDMXAddressArray
Definition StdAfx.h:96
std::vector< Sint32 > TSint32Array
Definition StdAfx.h:94
std::vector< double > TDoubleArray
Definition StdAfx.h:93
#define ASSERTN(x, y)
Definition StdAfx.h:35
#define kEveryone
Definition StdAfx.h:41
std::vector< Uint16 > TUint16Array
Definition StdAfx.h:95
#define VCOM_CALLTYPE
Definition VectorworksMVR.h:93
Definition VectorworksMVR.h:109