cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsDelayedConnections.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4
/*
5
Author(s): Anton Deguet
6
Created on: 2020-05-13
7
8
(C) Copyright 2020 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
#ifndef _mtsDelayedConnections_h
20
#define _mtsDelayedConnections_h
21
22
#include <
cisstMultiTask/mtsForwardDeclarations.h
>
23
24
// Always include last!
25
#include <
cisstMultiTask/mtsExport.h
>
26
27
class
CISST_EXPORT
mtsDelayedConnections
{
28
public
:
29
void
Add
(
const
std::string & clientComponentName,
30
const
std::string & clientInterfaceName,
31
const
std::string & serverComponentName,
32
const
std::string & serverInterfaceName);
33
void
Connect
(
const
bool
purge =
true
);
34
35
class
ConnectionType
{
36
public
:
37
inline
ConnectionType
(
const
std::string & clientComponentName,
38
const
std::string & clientInterfaceName,
39
const
std::string & serverComponentName,
40
const
std::string & serverInterfaceName):
41
ClientComponentName
(clientComponentName),
42
ClientInterfaceName
(clientInterfaceName),
43
ServerComponentName
(serverComponentName),
44
ServerInterfaceName
(serverInterfaceName)
45
{}
46
std::string
ClientComponentName
;
47
std::string
ClientInterfaceName
;
48
std::string
ServerComponentName
;
49
std::string
ServerInterfaceName
;
50
};
51
52
protected
:
53
typedef
std::list<ConnectionType>
ConnectionsType
;
54
ConnectionsType
Connections
;
55
};
56
57
inline
bool
operator==
(
const
mtsDelayedConnections::ConnectionType
& left,
58
const
mtsDelayedConnections::ConnectionType
& right)
59
{
60
return
(left.
ClientComponentName
== right.
ClientComponentName
)
61
&& (left.
ClientInterfaceName
== right.
ClientInterfaceName
)
62
&& (left.
ServerComponentName
== right.
ServerComponentName
)
63
&& (left.
ServerInterfaceName
== right.
ServerInterfaceName
);
64
}
65
66
#endif
// _mtsDelayedConnections_h
mtsDelayedConnections::ConnectionType
Definition
mtsDelayedConnections.h:35
mtsDelayedConnections::ConnectionType::ConnectionType
ConnectionType(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName)
Definition
mtsDelayedConnections.h:37
mtsDelayedConnections::ConnectionType::ServerComponentName
std::string ServerComponentName
Definition
mtsDelayedConnections.h:48
mtsDelayedConnections::ConnectionType::ClientComponentName
std::string ClientComponentName
Definition
mtsDelayedConnections.h:46
mtsDelayedConnections::ConnectionType::ServerInterfaceName
std::string ServerInterfaceName
Definition
mtsDelayedConnections.h:49
mtsDelayedConnections::ConnectionType::ClientInterfaceName
std::string ClientInterfaceName
Definition
mtsDelayedConnections.h:47
mtsDelayedConnections
Definition
mtsDelayedConnections.h:27
mtsDelayedConnections::Connections
ConnectionsType Connections
Definition
mtsDelayedConnections.h:54
mtsDelayedConnections::ConnectionsType
std::list< ConnectionType > ConnectionsType
Definition
mtsDelayedConnections.h:53
mtsDelayedConnections::Add
void Add(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName)
mtsDelayedConnections::Connect
void Connect(const bool purge=true)
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
mtsExport.h
Rules of exporting.
mtsForwardDeclarations.h
Forward declarations and #define for cisstMultiTask.
operator==
bool operator==(const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const
Definition
vctDynamicConstMatrixBase.h:715
Generated by
1.18.0