cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsInterfaceRequiredOrInput.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, Min Yang Jung
7  Created on: 2008-11-13
8 
9  (C) Copyright 2008-2011 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 #error File deprecated
21 
22 #ifndef _mtsInterfaceRequiredOrInput_h
23 #define _mtsInterfaceRequiredOrInput_h
24 
27 
29 
30 // Always include last
32 
33 
48 {
49  friend class mtsComponentProxy;
50  friend class mtsComponentInterfaceProxyClient;
51  friend class mtsManagerLocal;
52  friend class mtsManagerLocalTest;
53 
54 protected:
55 
57  const std::string Name;
58 
61 
64 
67 
68  public:
72  mtsInterfaceRequiredOrInput(const std::string & interfaceName,
73  mtsComponent * component,
74  mtsRequiredType required = MTS_REQUIRED);
75 
77  virtual ~mtsInterfaceRequiredOrInput();
78 
80  const std::string & GetName(void) const;
81 
84  const std::string GetFullName(void) const;
85 
87  const mtsComponent * GetComponent(void) const;
88 
89  virtual const mtsInterfaceProvidedOrOutput * GetConnectedInterface(void) const = 0;
90 
91  virtual bool CouldConnectTo(mtsInterfaceProvidedOrOutput * interfaceProvidedOrOutput) = 0;
92  virtual bool ConnectTo(mtsInterfaceProvidedOrOutput * interfaceProvidedOrOutput) = 0;
93  virtual bool Disconnect(void) = 0;
94 
96  mtsRequiredType IsRequired(void) const;
97 
102  // bool BindCommandsAndEvents(unsigned int userId);
103 };
104 
105 
106 #endif // _mtsInterfaceRequiredOrInput_h
107 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
mtsInterfaceRequiredOrInput(void)
Definition: mtsInterfaceRequiredOrInput.h:66
Class registration macros.
Definition: mtsForwardDeclarations.h:52
Base class for high level objects.
Definition: cmnGenericObject.h:51
Definition: mtsManagerLocal.h:89
mtsRequiredType
Definition: mtsForwardDeclarations.h:52
const std::string Name
Definition: mtsInterfaceRequiredOrInput.h:57
Forward declarations and #define for cisstMultiTask.
Definition: mtsComponent.h:150
mtsComponent * Component
Definition: mtsInterfaceRequiredOrInput.h:60
Defines cmnGenericObject.
Definition: mtsInterfaceProvidedOrOutput.h:54
Rules of exporting.
mtsRequiredType Required
Definition: mtsInterfaceRequiredOrInput.h:63
Definition: mtsInterfaceRequiredOrInput.h:47