Safir SDK Core
Loading...
Searching...
No Matches
ConnectionAspectBase.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2007-2013 (http://safirsdkcore.com)
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#pragma once
26
29
30namespace Safir
31{
32namespace Dob
33{
38 {
39 protected:
40
46 ConnectionAspectBase(const ConnectionBase& connection):m_ctrl(connection.GetControllerId()) {}
47
51
53 long GetControllerId() const {return m_ctrl;}
54
55 private:
56 long m_ctrl;
57 };
58}
59}
60
#define DOSE_CPP_API
Definition DoseCppExportDefs.h:33
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
Base class for all aspects.
Definition ConnectionAspectBase.h:38
long GetControllerId() const
Get the id of the controller.
Definition ConnectionAspectBase.h:53
virtual ~ConnectionAspectBase()
Destructor.
Definition ConnectionAspectBase.h:50
ConnectionAspectBase(const ConnectionBase &connection)
Constructor.
Definition ConnectionAspectBase.h:46
Common base class for connections to the DOB.
Definition ConnectionBase.h:59