Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConnectionAspectBase.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2007-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Anders Widén / stawi
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_CONNECTION_ASPECT_BASE_H
26 #define _SAFIR_DOB_CONNECTION_ASPECT_BASE_H
27 
30 
31 namespace Safir
32 {
33 namespace Dob
34 {
39  {
40  protected:
41 
47  ConnectionAspectBase(const ConnectionBase& connection):m_ctrl(connection.GetControllerId()) {}
48 
51  virtual ~ConnectionAspectBase() {}
52 
54  long GetControllerId() const {return m_ctrl;}
55 
56  private:
57  long m_ctrl;
58  };
59 }
60 }
61 
62 #endif
Base class for all aspects.
Definition: ConnectionAspectBase.h:38
virtual ~ConnectionAspectBase()
Destructor.
Definition: ConnectionAspectBase.h:51
ConnectionAspectBase(const ConnectionBase &connection)
Constructor.
Definition: ConnectionAspectBase.h:47
Common base class for connections to the DOB.
Definition: ConnectionBase.h:52
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33
long GetControllerId() const
Get the id of the controller.
Definition: ConnectionAspectBase.h:54