automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Attributes | List of all members
DBusSink Class Reference
Inheritance diagram for DBusSink:
AbstractSink AbstractDBusInterface AccelerationProperty AcceleratorPedalPosition AirbagStatusProperty AlarmStatus AntilockBrakingSystemProperty AtmosphericPressure BatteryStatusProperty BrakeMaintenance BrakeOperation ButtonEvent ChildSafetyLock Chime ClimateControlProperty ConvertibleRoof CruiseControlProperty CustomPropertyInterface DefrostProperty Diagnostics DoorProperty DoorsProperty DoorStatusProperty DriveMode DrivingMode ElectronicStabilityControl EngineCoolant EngineOilProperty EngineSpeedProperty ExteriorBrightnessProperty FluidProperty FuelInfoProperty FuelProperty HazardLightProperty HornProperty IgnitionTime InteriorLightStatusProperty LaneDepartureStatus LightStatusProperty LocationProperty MalfunctionIndicator MirrorProperty NightMode ObstacleDistanceProperty OccupantStatusProperty OdometerProperty ParkingBrakeProperty PowertrainTorque RainSensor SeatAdjustment SeatBeltStatusProperty SeatProperty SideWindowStatusProperty SizeProperty SteeringWheel SteeringWheelPositionProperty Sunroof Temperature ThrottlePosition TireProperty TractionControlSystemProperty TransmissionClutch TransmissionOil TransmissionProperty TripMeterProperty UncategorizedPropertyInterface VehicleId VehiclePowerModeProperty VehicleSound VehicleSpeedProperty VehicleTopSpeedLimitProperty VehicleTypeProperty WasherFluid WheelInformationProperty WheelTick WindowStatusProperty WindshieldWiperStatus YawRate

Public Member Functions

 DBusSink (std::string objectName, AbstractRoutingEngine *engine, GDBusConnection *connection, map< string, string > config=std::map< std::string, std::string >())
 
virtual void supportedChanged (const PropertyList &supportedProperties)
 
virtual void propertyChanged (AbstractPropertyType *value)
 propertyChanged is called when a subscribed to property changes.
 
virtual const std::string uuid ()
 Pure virtual methods:
 
PropertyList wantsProperties ()
 
void setSourceFilter (std::string sourceFilter)
 
void setZoneFilter (Zone::Type zone)
 
void wantPropertyVariant (VehicleProperty::Property ambProperty, std::string propertyName, VariantType::Access access)
 
- Public Member Functions inherited from AbstractSink
 AbstractSink (AbstractRoutingEngine *engine, map< string, string > config)
 
- Public Member Functions inherited from AbstractDBusInterface
 AbstractDBusInterface (std::string interfaceName, std::string objectName, GDBusConnection *connection)
 
void setDBusConnection (GDBusConnection *connection)
 
void registerObject ()
 
void unregisterObject ()
 
void addProperty (VariantType *property)
 
virtual void updateValue (VariantType *property)
 
std::string interfaceName ()
 
void setInterfaceName (const std::string &ifaceName)
 
bool implementsProperty (std::string property)
 
bool hasPropertyDBus (std::string attributeName)
 hasPropertyDBus
 
std::string objectPath ()
 
bool isSupported ()
 
double time ()
 
VariantTypeproperty (std::string propertyName)
 
void setObjectPath (std::string op)
 
std::string objectName ()
 
Zone::Type zone ()
 
std::string source ()
 
std::unordered_map
< std::string, VariantType * > 
getProperties ()
 
bool isRegistered ()
 

Static Public Attributes

static std::map< std::string,
std::string > 
dbusConfig
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDBusInterface
static PropertyList implementedProperties ()
 
static std::list
< AbstractDBusInterface * > 
getObjectsForProperty (std::string property)
 
static list
< AbstractDBusInterface * > 
interfaces ()
 
static std::vector< string > supportedInterfaces ()
 
- Public Attributes inherited from AbstractDBusInterface
AbstractRoutingEnginere
 
- Protected Member Functions inherited from AbstractDBusInterface
void startRegistration ()
 
virtual void setProperty (std::string propertyName, GVariant *value, std::function< void(bool, AsyncPropertyReply::Error)> callback)
 
virtual GVariant * getProperty (std::string propertyName)
 
void setTimeout (int timeout)
 
- Static Protected Member Functions inherited from AbstractDBusInterface
static GVariant * getProperty (GDBusConnection *connection, const gchar *sender, const gchar *objectPath, const gchar *interfaceName, const gchar *propertyName, GError **error, gpointer userData)
 
static gboolean setProperty (GDBusConnection *connection, const gchar *sender, const gchar *objectPath, const gchar *interfaceName, const gchar *propertyName, GVariant *value, GError **error, gpointer userData, std::function< void(bool, AsyncPropertyReply::Error)> callback)
 
static void handleMyMethodCall (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data)
 
- Protected Attributes inherited from AbstractSink
AbstractRoutingEngineroutingEngine
 routingEngine is the core of AMB. It is used to pass plugin and property information to other plugins
 
map< string, string > configuration
 
- Protected Attributes inherited from AbstractDBusInterface
std::unordered_map
< std::string, VariantType * > 
properties
 
Zone::Type zoneFilter
 
PropertyDBusMap propertyDBusMap
 
bool supported
 
double mTime
 
std::string mSourceFilter
 

Member Function Documentation

virtual void DBusSink::propertyChanged ( AbstractPropertyType value)
virtual

propertyChanged is called when a subscribed to property changes.

See Also
AbstractRoutingEngine::subscribeToPropertyChanges()
Parameters
valuevalue 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 from AbstractSink.

virtual void DBusSink::supportedChanged ( const PropertyList &  supportedProperties)
virtual

supportedChanged() is called when the supported properties changes

  • supportedProperties the new list of supported properties.

Implements AbstractSink.

virtual const std::string DBusSink::uuid ( )
virtual

Pure virtual methods:

uuid() is a unique identifier

Returns
a guid-style unique identifier

Implements AbstractSink.


The documentation for this class was generated from the following file: