SubscribeResponses¶
-
virtual PSubscription IEventResponder::SubscribeResponses(const std::vector<PEventResponse> &responses, EventResponseHandler handler) = 0¶
Subscribes a callback to be executed when any of the selected responses occur.
- Parameters
responses – Subscribe to responses of this source.
handler – Function to be called when any of the selected responses occur.
- Returns
PSubscription – An ISubscription for the callback.
- Throws
CInvalidArgumentException– Empty vector of responses specified.CInvalidArgumentException– Empty callback handler specified.COutOfResourcesException– No resources available to subscribe callback.CCommunicationErrorException– Protocol error.CConnectionLostException– Connection to controller lost.CRebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException– Object is destroyed (only applicable if entity is disposable).