20.1.7.8. ServiceTypeSupport¶
-
class ServiceTypeSupport¶
Public Functions
-
ServiceTypeSupport() noexcept = default¶
Constructor.
-
ServiceTypeSupport(const ServiceTypeSupport &service_type) noexcept = default¶
Copy Constructor.
- Parameters:
service_type – Another instance of ServiceTypeSupport
-
ServiceTypeSupport(ServiceTypeSupport &&service_type) noexcept = default¶
Move Constructor.
- Parameters:
service_type – Another instance of ServiceTypeSupport
-
ServiceTypeSupport &operator=(const ServiceTypeSupport &service_type) noexcept = default¶
Copy Assignment.
- Parameters:
service_type – Another instance of ServiceTypeSupport
-
ServiceTypeSupport &operator=(ServiceTypeSupport &&service_type) noexcept = default¶
Move Assignment.
- Parameters:
service_type – Another instance of ServiceTypeSupport
-
inline ServiceTypeSupport(TypeSupport request_type, TypeSupport reply_type)¶
ServiceTypeSupport constructor that receives two TypeSupport objects (Request + reply TypeSupports)
- Parameters:
request_type – TypeSupport of the request type
reply_type – TypeSupport of the reply type
-
virtual ~ServiceTypeSupport() = default¶
Destructor.
-
virtual ReturnCode_t register_service_type(DomainParticipant *participant, std::string service_type_name) const¶
Registers the service type on a participant.
- Parameters:
participant – DomainParticipant where the service type is going to be registered
service_type_name – Name of the service type to register
- Returns:
RETCODE_BAD_PARAMETER if the service name is empty, RETCODE_PRECONDITION_NOT_MET if there is another service with the same name registered on the DomainParticipant and RETCODE_OK if it is registered correctly
-
inline const TypeSupport request_type() const¶
Returns the TypeSupport of the request type.
-
inline const TypeSupport reply_type() const¶
Returns the TypeSupport of the reply type.
-
inline bool empty_types() const¶
Check if the ServiceTypeSupport object contains empty request/reply types.
-
ServiceTypeSupport() noexcept = default¶