Qpid .NET Messaging API  0.24
 All Classes Namespaces Files Functions Variables Typedefs
FailoverUpdates.h
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19 
20 #pragma once
21 
22 #include <windows.h>
23 #include <msclr\lock.h>
24 #include <oletx2xa.h>
25 #include <string>
26 #include <limits>
27 
28 namespace Org {
29 namespace Apache {
30 namespace Qpid {
31 namespace Messaging {
32 
36 
37  ref class Connection;
38 
39  public ref class FailoverUpdates
40  {
41  private:
42  // The kept object in the Messaging C++ DLL
43  ::qpid::messaging::FailoverUpdates * nativeObjPtr;
44 
45  // per-instance lock object
46  System::Object ^ privateLock;
47 
48  // Disallow use after object is destroyed
49  void ThrowIfDisposed();
50 
51  public:
52  FailoverUpdates(Connection ^ connection);
53 
55  !FailoverUpdates();
56 
57  //
58  // IsDisposed
59  //
60  property bool IsDisposed
61  {
62  bool get()
63  {
64  return NULL == nativeObjPtr;
65  }
66  }
67 
68  private:
69  // unmanaged clone
70  // not defined
71 
72  // copy constructor
73  FailoverUpdates(const FailoverUpdates ^ failoverUpdates) {}
74  FailoverUpdates(const FailoverUpdates % failoverUpdates) {}
75 
76  // assignment operator
77  FailoverUpdates % operator=(const FailoverUpdates % rhs)
78  {
79  return *this;
80  }
81  };
82 }}}}