|
enum | Operations { Get = 0x01,
Set = 0x02,
GetRanged = 0x04
} |
| The Operations enum is a bitmask flag used to specify which operations are supported by the source plugin.
|
|
pure virtual methods:
getPropertyAsync is called when a sink requests the value for given property. This is only called if the source supports the Get operation (
- See also
- Operation)
- Parameters
-
- See also
- AsyncPropertyReply
virtual PropertyInfo AbstractSource::getPropertyInfo |
( |
const VehicleProperty::Property & |
property | ) |
|
|
pure virtual |
getPropertyInfo used to return specific information about a property
- See also
- PropertyInfo 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 (
- See also
- Operations)
- Parameters
-
reply | is the reply variable. |
- See also
- AsyncRangePropertyReply
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 (
- See also
- Operation)
- Parameters
-
request | the requested property to set. |
- Returns
- returns a pointer to the new value for the property.
- See also
- AsyncPropertyReply
virtual void AbstractSource::subscribeToPropertyChanges |
( |
VehicleProperty::Property |
property | ) |
|
|
pure 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. |
- See also
- unsubscribeToPropertyChanges
virtual PropertyList AbstractSource::supported |
( |
| ) |
|
|
pure virtual |
supported
- Returns
- returns the supported properties.
virtual int AbstractSource::supportedOperations |
( |
| ) |
|
|
pure virtual |
supportedOperations
- Returns
- returns the supported operations.
- See also
- Operations
virtual void AbstractSource::unsubscribeToPropertyChanges |
( |
VehicleProperty::Property |
property | ) |
|
|
pure virtual |
unsubscribeToPropertyChanges is called when a sink requests to unsubscribe from a given property's changes.
- Parameters
-
property | the property to unsubscribe to |
- See also
- subscribeToPropertyChanges
routingEngine the core routing engine used to send property updates to sink plugins.
- See also
- AbstractRoutingEngine
The documentation for this class was generated from the following files:
- /home/kev/src/automotive-message-broker/lib/abstractsource.h
- /home/kev/src/automotive-message-broker/lib/abstractsource.cpp