1*b31e36b3SAndrew Rist /************************************************************** 2*b31e36b3SAndrew Rist * 3*b31e36b3SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*b31e36b3SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*b31e36b3SAndrew Rist * distributed with this work for additional information 6*b31e36b3SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*b31e36b3SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*b31e36b3SAndrew Rist * "License"); you may not use this file except in compliance 9*b31e36b3SAndrew Rist * with the License. You may obtain a copy of the License at 10*b31e36b3SAndrew Rist * 11*b31e36b3SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*b31e36b3SAndrew Rist * 13*b31e36b3SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*b31e36b3SAndrew Rist * software distributed under the License is distributed on an 15*b31e36b3SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b31e36b3SAndrew Rist * KIND, either express or implied. See the License for the 17*b31e36b3SAndrew Rist * specific language governing permissions and limitations 18*b31e36b3SAndrew Rist * under the License. 19*b31e36b3SAndrew Rist * 20*b31e36b3SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir // XMergeFactory.h: interface for the CXMergeFactory class. 22cdf0e10cSrcweir // 23cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////// 24cdf0e10cSrcweir 25cdf0e10cSrcweir #if !defined(AFX_XMERGEFACTORY_H__3150043C_57FB_4BC8_9104_379506FA6B9F__INCLUDED_) 26cdf0e10cSrcweir #define AFX_XMERGEFACTORY_H__3150043C_57FB_4BC8_9104_379506FA6B9F__INCLUDED_ 27cdf0e10cSrcweir 28cdf0e10cSrcweir #if _MSC_VER > 1000 29cdf0e10cSrcweir #pragma once 30cdf0e10cSrcweir #endif // _MSC_VER > 1000 31cdf0e10cSrcweir 32cdf0e10cSrcweir 33cdf0e10cSrcweir class CXMergeFactory : public IClassFactory 34cdf0e10cSrcweir { 35cdf0e10cSrcweir private: 36cdf0e10cSrcweir LONG m_cRef; ~CXMergeFactory()37cdf0e10cSrcweir virtual ~CXMergeFactory() {}; 38cdf0e10cSrcweir 39cdf0e10cSrcweir public: CXMergeFactory()40cdf0e10cSrcweir CXMergeFactory() : m_cRef(1) {}; // Set reference count when first created 41cdf0e10cSrcweir 42cdf0e10cSrcweir 43cdf0e10cSrcweir /********** IUnknown methods **********/ 44cdf0e10cSrcweir STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject); 45cdf0e10cSrcweir STDMETHODIMP_(ULONG) AddRef(void); 46cdf0e10cSrcweir STDMETHODIMP_(ULONG) Release(); 47cdf0e10cSrcweir 48cdf0e10cSrcweir 49cdf0e10cSrcweir /********** IUnknown methods **********/ 50cdf0e10cSrcweir STDMETHODIMP CreateInstance(IUnknown* pUnkOuter, REFIID riid, void **ppvObject); 51cdf0e10cSrcweir STDMETHODIMP LockServer(BOOL fLock); 52cdf0e10cSrcweir }; 53cdf0e10cSrcweir 54cdf0e10cSrcweir #endif // !defined(AFX_XMERGEFACTORY_H__3150043C_57FB_4BC8_9104_379506FA6B9F__INCLUDED_) 55