cisst-saw
Loading...
Searching...
No Matches
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
13This software is provided "as is" under an open source license, with
14no warranty. The complete license can be found in license.txt and
15http://www.cisst.org/cisst/license.txt.
16
17--- end cisst license ---
18*/
19
20
21#ifndef _mtsInterfaceInput_h
22#define _mtsInterfaceInput_h
23
26
27// Always include last
29
34
35
40
42{
43 friend class mtsManagerComponent;
44
45 protected:
46
49
53
57
58 public:
59
64 mtsInterfaceInput(const std::string & interfaceName, mtsComponent * component);
65
68
70
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
Definition mtsComponent.h:150
mtsInterface(const std::string &interfaceName, mtsComponent *component)
const mtsInterfaceOutput * GetConnectedInterface(void) const
virtual ~mtsInterfaceInput()
mtsInterfaceOutput * InterfaceOutput
Definition mtsInterfaceInput.h:52
friend class mtsManagerComponent
Definition mtsInterfaceInput.h:43
ConnectionIDType ConnectionID
Definition mtsInterfaceInput.h:56
virtual bool CouldConnectTo(mtsInterfaceOutput *interfaceOutput)=0
ConnectionIDType GetConnectionID(void) const
Definition mtsInterfaceInput.h:71
mtsInterfaceInput(const std::string &interfaceName, mtsComponent *component)
virtual bool Disconnect(void)=0
virtual bool ConnectTo(mtsInterfaceOutput *interfacePOutput)=0
Definition mtsInterfaceOutput.h:40
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Rules of exporting.
Forward declarations and #define for cisstMultiTask.
unsigned int ConnectionIDType
Definition mtsForwardDeclarations.h:149
Declaration of mtsInterface.