cisst-saw
|
#include <mtsInterfaceRequiredOrInput.h>
Public Member Functions | |
mtsInterfaceRequiredOrInput (const std::string &interfaceName, mtsComponent *component, mtsRequiredType required=MTS_REQUIRED) | |
virtual | ~mtsInterfaceRequiredOrInput () |
const std::string & | GetName (void) const |
const std::string | GetFullName (void) const |
const mtsComponent * | GetComponent (void) const |
virtual const mtsInterfaceProvidedOrOutput * | GetConnectedInterface (void) const =0 |
virtual bool | CouldConnectTo (mtsInterfaceProvidedOrOutput *interfaceProvidedOrOutput)=0 |
virtual bool | ConnectTo (mtsInterfaceProvidedOrOutput *interfaceProvidedOrOutput)=0 |
virtual bool | Disconnect (void)=0 |
mtsRequiredType | IsRequired (void) const |
![]() | |
virtual | ~cmnGenericObject (void) |
virtual const cmnClassServicesBase * | Services (void) const =0 |
bool | ReconstructFrom (const cmnGenericObject &other) |
std::string | ToString (void) const |
virtual void | ToStream (std::ostream &outputStream) const |
virtual void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter= ' ') |
virtual void | SerializeRaw (std::ostream &outputStream) const |
virtual void | DeSerializeRaw (std::istream &inputStream) |
virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
virtual size_t | ScalarNumber (void) const |
virtual bool | ScalarNumberIsFixed (void) const |
virtual double | Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range) |
virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
Protected Member Functions | |
mtsInterfaceRequiredOrInput (void) | |
Protected Attributes | |
const std::string | Name |
mtsComponent * | Component |
mtsRequiredType | Required |
Friends | |
class | mtsComponentProxy |
class | mtsComponentInterfaceProxyClient |
class | mtsManagerLocal |
class | mtsManagerLocalTest |
Base class for mtsInterfaceRequired and mtsInterfaceInput. This class contains pure virtual methods and can not be instantiated.
|
inlineprotected |
Default constructor. Does nothing, should not be used.
mtsInterfaceRequiredOrInput::mtsInterfaceRequiredOrInput | ( | const std::string & | interfaceName, |
mtsComponent * | component, | ||
mtsRequiredType | required = MTS_REQUIRED |
||
) |
Constructor. Sets the name.
interfaceName | Name of required interface |
|
virtual |
Default destructor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
const mtsComponent* mtsInterfaceRequiredOrInput::GetComponent | ( | void | ) | const |
Get a const pointer on the component
|
pure virtual |
const std::string mtsInterfaceRequiredOrInput::GetFullName | ( | void | ) | const |
Returns the name of the this interface as well as the component that owns the interface.
const std::string& mtsInterfaceRequiredOrInput::GetName | ( | void | ) | const |
Returns the name of the interface.
mtsRequiredType mtsInterfaceRequiredOrInput::IsRequired | ( | void | ) | const |
Check if this interface is required or not for the component to function.
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Pointer on the device itself.
|
protected |
A string identifying the 'Name' of the required interface.
|
protected |
Indicates if the interface must be connected.