InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPMUnknown.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Robin_Briggs
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Purpose:
24 // Base class for interfaces. Provides mechanism for querying interfaces, and for
25 // ref-counting objects.
26 //
27 //========================================================================================
28 
29 #ifndef __IPMUNKNOWN__
30 #define __IPMUNKNOWN__
31 
32 
33 // On Metrowerks on the Mac, in order to force COM compatible vtables we have to
34 // inherit from SingleObject.
35 #if defined(MACINTOSH) && defined(__MWERKS__) && !defined(__MACH__)
36 #define :public SingleObject
37 #else
38 #define
39 #endif
40 
46 class IPMUnknown {
47 public:
56  virtual IPMUnknown *QueryInterface(PMIID interfaceID) const = 0;
57 
63  virtual void AddRef() const = 0;
64 
70  virtual void Release() const = 0;
71 };
72 
73 #endif // __IPMUNKNOWN__