20 #ifndef ABSTRACTSOURCE_H
21 #define ABSTRACTSOURCE_H
25 #include <boost/any.hpp>
27 #include "abstractsink.h"
28 #include "vehicleproperty.h"
29 #include "abstractroutingengine.h"
30 #include "abstractpropertytype.h"
31 #include "propertyinfo.hpp"
37 typedef std::list<AbstractSource*> SourceList;
128 #endif // ABSTRACTSOURCE_H
virtual void unsubscribeToPropertyChanges(VehicleProperty::Property property)=0
unsubscribeToPropertyChanges is called when a sink requests to unsubscribe from a given property's ch...
Definition: abstractroutingengine.h:323
Operations
The Operations enum is a bitmask flag used to specify which operations are supported by the source pl...
Definition: abstractsource.h:48
virtual PropertyList supported()=0
supported
AbstractRoutingEngine * routingEngine
routingEngine the core routing engine used to send property updates to sink plugins.
Definition: abstractsource.h:122
virtual void subscribeToPropertyChanges(VehicleProperty::Property property)=0
subscribeToPropertyChanges is called when a sink requests a subscription. Source plugins can keep tra...
virtual PropertyInfo getPropertyInfo(const VehicleProperty::Property &property)
getPropertyInfo used to return specific information about a property
Definition: abstractsource.cpp:34
virtual void getPropertyAsync(AsyncPropertyReply *reply)=0
pure virtual methods:
The AsyncPropertyReply class is used by sources to reply to Get and Set operations. The source should set success to true if the call is successful or 'false' if the request was not successful and set 'error' to the appropriate error.
Definition: abstractroutingengine.h:123
The AsyncSetPropertyRequest class is used by sinks to set a property to the 'value'. The source will reply with a AsyncPropertyReply containing the new value or an error.
Definition: abstractroutingengine.h:179
Definition: propertyinfo.hpp:7
The AsyncRangePropertyReply class is used by a source to reply to an AsyncRangePropertyRequest. the source should set success to 'true' and populate the 'values' member if the request was successful. If the request is not successful, 'success' should be set to 'false' and the 'error' member should be set.
Definition: abstractroutingengine.h:288
Definition: abstractsink.h:40
virtual AsyncPropertyReply * setProperty(AsyncSetPropertyRequest request)=0
setProperty is called when a sink requests to set a value for a given property. This is only called i...
virtual void getRangePropertyAsync(AsyncRangePropertyReply *reply)=0
getRangePropertyAsync is called when a sink requests a series of values for a given property within a...
virtual int supportedOperations()=0
supportedOperations
Definition: abstractsource.h:41