20 #ifndef RTC_INPORTBASE_H 21 #define RTC_INPORTBASE_H 45 class OutPortConsumer;
94 InPortBase(
const char* name,
const char* data_type);
142 virtual bool read() = 0;
179 const std::vector<InPortConnector*>&
connectors();
449 bool autoclean =
true);
529 bool autoclean =
true);
598 connect(ConnectorProfile& connector_profile)
599 throw (CORBA::SystemException);
874 #endif // RTC_INPORTBASE_H RTC's Port base class.
ConnectorListeners class.
bool checkEndian(const coil::Properties &prop, bool &littleEndian)
Checking endian flag of serializer.
virtual ReturnCode_t subscribeInterfaces(const ConnectorProfile &connector_profile)
Subscribe to the interface.
coil::Properties & properties()
Get properties.
#define DATAPORTSTATUS_ENUM
Importing RTC::DataPortStatus macro.
virtual void unsubscribeInterfaces(const ConnectorProfile &connector_profile)
Disconnect the interface connection.
CdrBufferBase * m_thebuffer
Buffer.
virtual ReturnCode_t connect(ConnectorProfile &connector_profile)
[CORBA interface] Connect the Port
ConnectorDataListener class.
ConnectorListeners m_listeners
ConnectorDataListener listener.
std::vector< ConnectorInfo > ConnectorInfoList
bool isLittleEndian()
return it whether endian setting.
virtual void deactivateInterfaces()
Deactivate all Port interfaces.
coil::vstring m_providerTypes
Available providers.
coil::vstring m_consumerTypes
Available consumers.
virtual void activateInterfaces()
Activate all Port interfaces.
virtual ~InPortBase(void)
Destructor.
std::vector< std::string > vstring
ConnectorDataListenerType
The types of ConnectorDataListener.
InPortConnector * createConnector(ConnectorProfile &cprof, coil::Properties &prop, InPortProvider *provider)
InPortPushConnector creation.
bool m_littleEndian
Connected Endian.
InPortConnector * getConnectorByName(const char *name)
Getting Connector by name.
DATAPORTSTATUS_ENUM typedef std::vector< InPortConnector * > ConnectorList
void removeConnectorDataListener(ConnectorDataListenerType listener_type, ConnectorDataListener *listener)
Removing BufferDataListener type listener.
InPortBase(const char *name, const char *data_type)
Constructor.
bool getConnectorProfileById(const char *id, ConnectorInfo &prof)
Getting ConnectorProfile by name.
ConnectorInfoList getConnectorProfiles()
ConnectorProfile list.
void initProviders()
InPort provider initialization.
coil::vstring getConnectorIds()
ConnectorId list.
bool getConnectorProfileByName(const char *name, ConnectorInfo &prof)
Getting ConnectorProfile by name.
void addConnectorListener(ConnectorListenerType callback_type, ConnectorListener *listener, bool autoclean=true)
Adding ConnectorListener type listener.
const std::vector< InPortConnector * > & connectors()
Connector list.
prop
Organization::get_organization_property ();.
void initConsumers()
OutPort consumer initialization.
ConnectorListenerType
The types of ConnectorListener.
Class represents a set of properties.
void removeConnectorListener(ConnectorListenerType callback_type, ConnectorListener *listener)
Removing BufferDataListener type listener.
coil::Properties m_properties
Properties.
OutPortConsumer abstract class.
coil::vstring getConnectorNames()
Connector name list.
InPortConnector * getConnectorById(const char *id)
Getting ConnectorProfile by ID.
void init(coil::Properties &prop)
Initializing properties.
bool m_singlebuffer
Buffer mode.
OutPortConsumer * createConsumer(const ConnectorProfile &cprof, coil::Properties &prop)
InPort provider creation.
DataPortStatus mixin class.
BufferBase abstract class.
virtual bool read()=0
It is a virtual method that is called from RTObject_impl::readAll(). This method reads out data from ...
void addConnectorDataListener(ConnectorDataListenerType listener_type, ConnectorDataListener *listener, bool autoclean=true)
Adding BufferDataListener type listener.
ConnectorList m_connectors
Connection list.
InPortProvider * createProvider(ConnectorProfile &cprof, coil::Properties &prop)
InPort provider creation.
virtual ReturnCode_t publishInterfaces(ConnectorProfile &connector_profile)
Publish interface information.