AmbPlugin private class implementation - base class for all plugin implementations.
More...
#include <ambpluginimpl.h>
AmbPlugin private class implementation - base class for all plugin implementations.
Contains common code used in plugins for Automotive message broker(AMB). For the AMB library API please visit Automotive Message Broker Library Documentation.
Registers property in AMB
- Parameters
-
| zone | Zone of the property to be registered. |
| typeFactory | Function to be used to create instance of the AbstractPropertyType for registered property |
- Returns
- AbstractPropertyType* if signal exits otherwise nullptr(in this case we do not know its datatype)
| virtual AbstractPropertyType* AmbPluginImpl::findPropertyType |
( |
const VehicleProperty::Property & |
propertyName, |
|
|
const Zone::Type & |
zone = Zone::None |
|
) |
| |
|
protectedvirtual |
Finds property type in properties
- Parameters
-
| propertyName | Name of the property to be found. |
| zone | Zone of the property to be found. |
- Returns
- AbstractPropertyType* if signal exits otherwise nullptr(in this case we do not know its datatype)
getPropertyAsync is called when a sink requests the value for given property. This is only called if the source supports the Get operation.
- Parameters
-
Reimplemented in OpenCvLuxPlugin.
| virtual PropertyInfo AmbPluginImpl::getPropertyInfo |
( |
const VehicleProperty::Property & |
property | ) |
|
|
virtual |
getPropertyInfo used to return specific information about a property. The source should override this otherwise a PropertyInfo::invalid() will be returned for the property
- Parameters
-
| property | the property to get info for. |
- Returns
- a PropertyInfo object.
getRangePropertyAsync is called when a sink requests a series of values for a given property within a specified time or sequencial range. This will only be called if the source support the Ranged Operation.
- Parameters
-
| reply | is the reply variable. |
Reimplemented in DatabaseSink, and OpenCvLuxPlugin.
propertyChanged is called when a subscribed to property changes.
- Parameters
-
| value | value of the property that changed. this is a temporary pointer that will be destroyed. Do not destroy it. If you need to store the value use value.anyValue(), value.value<T>() or value->copy() to copy. |
Reimplemented in DatabaseSink, CANGenPlugin, BluemonkeySink, OpenCvLuxPlugin, and ChronySink.
setProperty is called when a sink requests to set a value for a given property. This is only called if the source supports the Set Operation.
- Parameters
-
| request | the requested property to set. |
- Returns
- returns a pointer to the new value for the property.
Reimplemented in DatabaseSink, and CANGenPlugin.
| virtual void AmbPluginImpl::subscribeToPropertyChanges |
( |
const VehicleProperty::Property & |
property | ) |
|
|
virtual |
subscribeToPropertyChanges is called when a sink requests a subscription. Source plugins can keep track of subscriptions and may wish to sleep if there are no subscriptions.
- Parameters
-
| property | the property that is being subscribed. |
| virtual PropertyList AmbPluginImpl::supported |
( |
| ) |
const |
|
virtual |
supported is called by the routingEngine to understand what properties this source supports.
- Returns
- returns a list of supported properties. If the the supported properties changed, the source should call AbstractRoutingEngine::setSupported.
| AmbPluginImpl::supportedChanged |
( |
const PropertyList & |
supportedProperties | ) |
|
|
virtual |
| virtual int AmbPluginImpl::supportedOperations |
( |
| ) |
const |
|
virtual |
| virtual void AmbPluginImpl::unsubscribeToPropertyChanges |
( |
const VehicleProperty::Property & |
property | ) |
|
|
virtual |
unsubscribeToPropertyChanges is called when a sink requests to unsubscribe from a given property's changes.
- Parameters
-
| property | the property to unsubscribe to |
| virtual const std::string AmbPluginImpl::uuid |
( |
| ) |
const |
|
pure virtual |
| std::map< std::string, std::string> AmbPluginImpl::configuration |
|
protected |
| AmbPluginImpl::properties |
|
protected |
Supported property values map
| AmbPluginImpl::routingEngine |
|
protected |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/automotive-message-broker-0.15/lib/ambpluginimpl.h