-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDDECltConvPtr.hpp
62 lines (46 loc) · 1.12 KB
/
DDECltConvPtr.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
////////////////////////////////////////////////////////////////////////////////
//! \file DDECltConvPtr.hpp
//! \brief The CltConvPtr class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef DDE_CLTCONVPTR_HPP
#define DDE_CLTCONVPTR_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <Core/SmartPtr.hpp>
#include "DDECltConv.hpp"
namespace DDE
{
////////////////////////////////////////////////////////////////////////////////
//! The smart-pointer type used to manage a DDE Client Conversation. These are
//! reference counted internally by the DDEClient.
class CltConvPtr : public Core::SmartPtr<IDDECltConv>
{
public:
//! Default constructor.
CltConvPtr();
//! Attach an existing pointer.
explicit CltConvPtr(IDDECltConv* pPointer, bool bAddRef = false);
//! Copy constructor.
CltConvPtr(const CltConvPtr& oPtr);
//! Destructor.
~CltConvPtr();
//
// Operators.
//
//! Assignment operator.
CltConvPtr& operator=(const CltConvPtr& oPtr);
//
// Methods.
//
//! Release the pointer.
void Release();
private:
//
// Members.
//
};
//namespace DDE
}
#endif // DDE_CLTCONVPTR_HPP