25#ifndef _SAFIR_DOB_CONSUMER_H
26#define _SAFIR_DOB_CONSUMER_H
66 StopHandler * ToStopHandler()
override {
return this;}
91 Dispatcher * ToDispatcher()
override {
return this;}
272 Requestor * ToRequestor()
override {
return this;}
384 const bool deprecated) = 0;
#define DOSE_CPP_API
Definition DoseCppExportDefs.h:33
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Interface for reception of a stop order.
Definition Consumer.h:55
virtual ~StopHandler()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:58
virtual void OnStopOrder()=0
When called the application owning the connection shall stop its execution.
Interface for reception of a dispatch order.
Definition Consumer.h:74
virtual ~Dispatcher()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:77
virtual void OnDoDispatch()=0
Indicates that there is incoming data for the connection so the application shall call Dispatch().
Interface to be implemented by an entity handler that makes a non-pending registration and that doesn...
Definition Consumer.h:115
Interface to be implemented by an entity handler that makes a non-pending registration for a type tha...
Definition Consumer.h:155
Interface to be implemented by an entity handler that makes a pending registration.
Definition Consumer.h:197
Interface to be implemented by a service handler that makes a non-pending registration.
Definition Consumer.h:218
Interface to be implemented by a service handler that makes a pending registration.
Definition Consumer.h:242
Interface to be implemented by an application that sends requests (Request on entities or service req...
Definition Consumer.h:254
virtual void OnNotRequestOverflow()=0
Called to indicate that it is meningful to make a retry after an overflow situation.
virtual ~Requestor()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:257
virtual void OnResponse(const Safir::Dob::ResponseProxy responseProxy)=0
Called when a response is received on a sent request.
Interface to be implemented by senders of messages.
Definition Consumer.h:280
virtual void OnNotMessageOverflow()=0
Called to indicate that it is meningful to make a retry after an overflow situation.
virtual ~MessageSender()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:283
Interface to be implemented by subscribers of handler registrations.
Definition Consumer.h:299
virtual void OnRegistered(const Safir::Dob::Typesystem::TypeId typeId, const Safir::Dob::Typesystem::HandlerId &handlerId)=0
Called when a handler for an entity or service has been registered.
virtual void OnUnregistered(const Safir::Dob::Typesystem::TypeId typeId, const Safir::Dob::Typesystem::HandlerId &handlerId)=0
Called when a handler for an entity or service has been unregistered.
virtual ~RegistrationSubscriber()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:302
Interface to be implemented by subscribers of messages.
Definition Consumer.h:331
virtual void OnMessage(const Safir::Dob::MessageProxy messageProxy)=0
Called when a message is received.
virtual ~MessageSubscriber()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:334
Interface to be implemented by subscribers of entities.
Definition Consumer.h:352
virtual void OnDeletedEntity(const Safir::Dob::EntityProxy entityProxy, const bool deprecated)=0
Called when an entity is deleted.
virtual ~EntitySubscriber()
Virtual destructor is needed since we have virtual member functions.
Definition Consumer.h:355
virtual void OnNewEntity(const Safir::Dob::EntityProxy entityProxy)=0
Called when a new entity is available.
virtual void OnUpdatedEntity(const Safir::Dob::EntityProxy entityProxy)=0
Called when an entity is updated.
Base class used when composing more elaborated interfaces.
Definition ConsumerBase.h:87
Base class used when composing more elaborated interfaces.
Definition ConsumerBase.h:209
Base class used when composing more elaborated interfaces.
Definition ConsumerBase.h:233
Interface to receive entity requests.
Definition ConsumerBase.h:255
This Consumer Base class contains callback methods that can be overridden by an entity handler that r...
Definition ConsumerBase.h:347
Interface to receive service requests.
Definition ConsumerBase.h:418
Proxy class for an entity.
Definition EntityProxy.h:54
Proxy class for a message.
Definition MessageProxy.h:59
Proxy class for a response.
Definition ResponseProxy.h:53
Class containing the identity of a handler.
Definition HandlerId.h:46