19 #ifndef _AMBPLUGINIMPL_H_
20 #define _AMBPLUGINIMPL_H_
22 #include "abstractsource.h"
113 virtual const std::string
uuid()
const = 0;
153 auto typeFactory = [](){
183 std::map< VehicleProperty::Property, ZonePropertyType >
properties;
191 #endif // _AMBPLUGINIMPL_H_
virtual int supportedOperations() const
supportedOperations
Definition: ambpluginimpl.cpp:112
AbstractRoutingEngine * routingEngine
Definition: ambpluginimpl.h:172
virtual AbstractPropertyType * findPropertyType(const VehicleProperty::Property &propertyName, const Zone::Type &zone=Zone::None)
Definition: ambpluginimpl.cpp:122
Definition: abstractpropertytype.h:70
AmbPluginImpl(AbstractRoutingEngine *re, const map< string, string > &config, AbstractSource &parent)
Definition: ambpluginimpl.cpp:28
Definition: abstractroutingengine.h:366
virtual void supportedChanged(const PropertyList &supportedProperties)
Definition: ambpluginimpl.cpp:184
virtual void unsubscribeToPropertyChanges(const VehicleProperty::Property &property)
unsubscribeToPropertyChanges is called when a sink requests to unsubscribe from a given property's ch...
Definition: ambpluginimpl.cpp:117
std::map< Zone::Type, std::shared_ptr< AbstractPropertyType > > ZonePropertyType
Definition: ambpluginimpl.h:177
virtual void getRangePropertyAsync(AsyncRangePropertyReply *reply)
getRangePropertyAsync is called when a sink requests a series of values for a given property within a...
Definition: ambpluginimpl.cpp:61
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
AmbPlugin private class implementation - base class for all plugin implementations.
Definition: ambpluginimpl.h:36
virtual PropertyInfo getPropertyInfo(const VehicleProperty::Property &property)
getPropertyInfo used to return specific information about a property. The source should override this...
Definition: ambpluginimpl.cpp:166
virtual void init()
Definition: ambpluginimpl.cpp:35
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:219
Definition: propertyinfo.hpp:6
virtual void subscribeToPropertyChanges(const VehicleProperty::Property &property)
subscribeToPropertyChanges is called when a sink requests a subscription. Source plugins can keep tra...
Definition: ambpluginimpl.cpp:99
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:331
virtual void propertyChanged(AbstractPropertyType *value)
Definition: ambpluginimpl.cpp:180
std::map< VehicleProperty::Property, ZonePropertyType > properties
Definition: ambpluginimpl.h:183
virtual PropertyList supported() const
supported is called by the routingEngine to understand what properties this source supports...
Definition: ambpluginimpl.cpp:104
virtual const std::string uuid() const =0
std::shared_ptr< AbstractPropertyType > addPropertySupport(Zone::Type zone, std::function< AbstractPropertyType *(void)> typeFactory, std::string sourceUuid="")
Definition: ambpluginimpl.cpp:136
std::map< std::string, std::string > configuration
Definition: ambpluginimpl.h:188
Definition: abstractsource.h:41
virtual void getPropertyAsync(AsyncPropertyReply *reply)
getPropertyAsync is called when a sink requests the value for given property. This is only called if ...
Definition: ambpluginimpl.cpp:39
virtual AsyncPropertyReply * setProperty(const AsyncSetPropertyRequest &request)
setProperty is called when a sink requests to set a value for a given property. This is only called i...
Definition: ambpluginimpl.cpp:75