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 all IviPoC II plugins for Automotive message broker(AMB). For the AMB library API please visit Automotive message broker web page.
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)
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
-
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. |
Second phase of the plugin initialization.
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. |
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.
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. |
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 |
supportedChanged() is called when the supported properties changes
- Parameters
-
supportedProperties | the new list of supported properties. |
int AmbPluginImpl::supportedOperations |
( |
| ) |
const |
|
virtual |
supportedOperations
- Returns
- returns the supported operations.
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 |
uuid() is a unique identifier
- Returns
- a guid-style unique identifier
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 files:
- /home/kev/src/automotive-message-broker/lib/ambpluginimpl.h
- /home/kev/src/automotive-message-broker/lib/ambpluginimpl.cpp