Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SecondaryConnection.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2006-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Lars Hagström / stlrha
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 
25 #ifndef _SAFIR_DOB_SECONDARY_CONNECTION_H
26 #define _SAFIR_DOB_SECONDARY_CONNECTION_H
27 
31 
32 namespace Safir
33 {
34 namespace Dob
35 {
45  {
46  public:
50 
53  virtual ~SecondaryConnection();
54 
66  void Attach();
67 
87  void Attach(const std::wstring& connectionNameCommonPart,
88  const std::wstring& connectionNameInstancePart);
89 
95  void Detach();
96 
102  bool IsAttached() const;
103 
109  virtual bool IsOpen() const;
110 
111  private:
112 
113  //implementation of pure virtual
114  virtual long GetControllerId() const;
115 
116  long m_ctrl;
117 
118  //Disable copying and assignment
120  SecondaryConnection& operator=(const SecondaryConnection& rhs);
121  };
122 
123 }
124 }
125 
126 #endif
A secondary connection attached to a "real" connection.
Definition: SecondaryConnection.h:44
Common base class for connections to the DOB.
Definition: ConnectionBase.h:52
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33