Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConnectionAspectMisc.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_MISC_H
26 #define _SAFIR_DOB_CONNECTION_ASPECT_MISC_H
27 
33 #include <Safir/Dob/Entity.h>
35 #include <Safir/Dob/CallbackId.h>
36 
37 #include <string>
38 
39 namespace Safir
40 {
41 namespace Dob
42 {
48  {
49  public:
55  explicit ConnectionAspectMisc(const ConnectionBase& connection) : ConnectionAspectBase(connection) {}
56 
62  const Dob::CallbackId::Enumeration GetCurrentCallbackId() const;
63 
77  const std::wstring GetConnectionName() const;
78 
84  const std::wstring GetConnectionNameCommonPart() const;
85 
91  const std::wstring GetConnectionNameInstancePart() const;
92 
98  Dob::Typesystem::Int32 GetContext() const;
99 
115  Dob::Typesystem::Int32 GetQueueCapacity(const Dob::ConnectionQueueId::Enumeration queue) const;
116 
117 
128  Dob::Typesystem::Int32 GetQueueSize(const Dob::ConnectionQueueId::Enumeration queue) const;
129 
152  void SimulateOverflows(const bool inQueues, const bool outQueues) const;
153 
155  };
156 
157 }
158 }
159 
160 #endif
Class that provides miscellaneous methods that are used less frequently.
Definition: ConnectionAspectMisc.h:47
Base class for all aspects.
Definition: ConnectionAspectBase.h:38
ConnectionAspectMisc(const ConnectionBase &connection)
Constructor.
Definition: ConnectionAspectMisc.h:55
Enumeration
Definition: CallbackId.h:37
Common base class for connections to the DOB.
Definition: ConnectionBase.h:52
Enumeration
Definition: ConnectionQueueId.h:37
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67