IPortService.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_LOCAL_IPORTSERVICE_H
21 #define RTC_LOCAL_IPORTSERVICE_H
22 
23 #include <vector>
24 #include <rtc/IRTC.h>
25 
26 namespace RTC
27 {
28 namespace Local
29 {
30 
32  {
34  char* type_name;
35  PortPolarity polarity;
36  };
37 
38  typedef std::vector<PortInterfaceProfile*> PortInterfaceProfileList;
39  class IPortService;
40  typedef std::vector<IPortService*> PortServiceList;
41 
43  {
44  char* name;
46  PortServiceList ports;
48  };
49 
50  typedef std::vector<ConnectorProfile*> ConnectorProfileList;
51  class RTObject;
52 
53  struct PortProfile
54  {
55  char* name;
56  PortInterfaceProfileList interfaces;
58  ConnectorProfileList connector_profiles;
61  };
62 
63  typedef std::vector<PortProfile*> PortProfileList;
64 
75  {
76  public:
77  virtual ~IPortService() {};
78  virtual PortProfile& get_port_profile() const = 0;
79  virtual ConnectorProfileList& get_connector_profiles() const = 0;
80  virtual ConnectorProfile&
81  get_connector_profile(const UniqueIdentifier connector_id) const = 0;
82  virtual ReturnCode_t connect(ConnectorProfile& connector_profile) = 0;
83  virtual ReturnCode_t disconnect(const UniqueIdentifier connector_id) = 0;
84  virtual ReturnCode_t
85  notify_connect(ConnectorProfile& connector_profile) = 0;
86  virtual ReturnCode_t
87  notify_disconnect(const UniqueIdentifier connector_id) = 0;
88  virtual ReturnCode_t disconnect_all() = 0;
89  };
90 }; // namespace Local
91 }; // namespace RTC
92 #endif // RTC_LOCAL_IPORTSERVICE_H
93 
RT-Component.
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
UniqueIdentifier connector_id
Definition: IPortService.h:45
char * UniqueIdentifier
Definition: IRTC.h:65
PortInterfaceProfileList interfaces
Definition: IPortService.h:56
std::vector< PortInterfaceProfile * > PortInterfaceProfileList
Definition: IPortService.h:38
IPortService itnerface class.
Definition: IPortService.h:74
std::vector< ConnectorProfile * > ConnectorProfileList
Definition: IPortService.h:50
IPortService * port_ref
Definition: IPortService.h:57
ReturnCode_t
Definition: IRTC.h:30
ConnectorProfileList connector_profiles
Definition: IPortService.h:58
RTC interfaces.
std::vector< IPortService * > PortServiceList
Definition: IPortService.h:39
std::vector< PortProfile * > PortProfileList
Definition: IPortService.h:63


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:43