cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsInterfaceInput.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
6
Author(s): Peter Kazanzides, Anton Deguet
7
Created on: 2008-11-13
8
9
(C) Copyright 2008-2026 Johns Hopkins University (JHU), All Rights Reserved.
10
11
--- begin cisst license - do not edit ---
12
13
This software is provided "as is" under an open source license, with
14
no warranty. The complete license can be found in license.txt and
15
http://www.cisst.org/cisst/license.txt.
16
17
--- end cisst license ---
18
*/
19
20
21
#ifndef _mtsInterfaceInput_h
22
#define _mtsInterfaceInput_h
23
24
#include <
cisstMultiTask/mtsInterface.h
>
25
#include <
cisstMultiTask/mtsForwardDeclarations.h
>
26
27
// Always include last
28
#include <
cisstMultiTask/mtsExport.h
>
29
34
35
40
41
class
CISST_EXPORT
mtsInterfaceInput
:
public
mtsInterface
42
{
43
friend
class
mtsManagerComponent
;
44
45
protected
:
46
48
mtsInterfaceInput
(
void
);
49
52
mtsInterfaceOutput
*
InterfaceOutput
;
53
56
ConnectionIDType
ConnectionID
;
57
58
public
:
59
64
mtsInterfaceInput
(
const
std::string & interfaceName,
mtsComponent
* component);
65
67
virtual
~mtsInterfaceInput
();
68
69
const
mtsInterfaceOutput
*
GetConnectedInterface
(
void
)
const
;
70
71
ConnectionIDType
GetConnectionID
(
void
)
const
72
{
return
ConnectionID
; }
73
74
virtual
bool
CouldConnectTo
(
mtsInterfaceOutput
* interfaceOutput) = 0;
75
virtual
bool
ConnectTo
(
mtsInterfaceOutput
* interfacePOutput) = 0;
76
virtual
bool
Disconnect
(
void
) = 0;
77
};
78
79
80
#endif
// _mtsInterfaceInput_h
mtsComponent
Definition
mtsComponent.h:150
mtsInterface::mtsInterface
mtsInterface(const std::string &interfaceName, mtsComponent *component)
mtsInterfaceInput::GetConnectedInterface
const mtsInterfaceOutput * GetConnectedInterface(void) const
mtsInterfaceInput::~mtsInterfaceInput
virtual ~mtsInterfaceInput()
mtsInterfaceInput::InterfaceOutput
mtsInterfaceOutput * InterfaceOutput
Definition
mtsInterfaceInput.h:52
mtsInterfaceInput::mtsManagerComponent
friend class mtsManagerComponent
Definition
mtsInterfaceInput.h:43
mtsInterfaceInput::ConnectionID
ConnectionIDType ConnectionID
Definition
mtsInterfaceInput.h:56
mtsInterfaceInput::CouldConnectTo
virtual bool CouldConnectTo(mtsInterfaceOutput *interfaceOutput)=0
mtsInterfaceInput::GetConnectionID
ConnectionIDType GetConnectionID(void) const
Definition
mtsInterfaceInput.h:71
mtsInterfaceInput::mtsInterfaceInput
mtsInterfaceInput(const std::string &interfaceName, mtsComponent *component)
mtsInterfaceInput::Disconnect
virtual bool Disconnect(void)=0
mtsInterfaceInput::mtsInterfaceInput
mtsInterfaceInput(void)
mtsInterfaceInput::ConnectTo
virtual bool ConnectTo(mtsInterfaceOutput *interfacePOutput)=0
mtsInterfaceOutput
Definition
mtsInterfaceOutput.h:40
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
mtsExport.h
Rules of exporting.
mtsForwardDeclarations.h
Forward declarations and #define for cisstMultiTask.
ConnectionIDType
unsigned int ConnectionIDType
Definition
mtsForwardDeclarations.h:149
mtsInterface.h
Declaration of mtsInterface.
Generated by
1.18.0