From: Kevron Rees Date: Mon, 27 Aug 2012 23:30:13 +0000 (-0700) Subject: added capabilities call to VehicleProperty X-Git-Tag: submit/release/20120910.223349~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe70e7c2aee0a4cf66b5e2cd0e2e257d388d5c24;p=profile%2Fivi%2Fautomotive-message-broker.git added capabilities call to VehicleProperty --- diff --git a/lib/vehicleproperty.cpp b/lib/vehicleproperty.cpp index aa6bb81..692eeba 100644 --- a/lib/vehicleproperty.cpp +++ b/lib/vehicleproperty.cpp @@ -44,3 +44,25 @@ VehicleProperty::VehicleProperty() } +std::list VehicleProperty::capabilities() +{ + PropertyList mProperties; + + mProperties.push_back(VehicleSpeed); + mProperties.push_back(EngineSpeed); + mProperties.push_back(TransmissionShiftPosition); + mProperties.push_back(TransmissionGearPosition); + mProperties.push_back(ThrottlePosition); + mProperties.push_back(WheelBrake); + mProperties.push_back(SteeringWheelAngle); + mProperties.push_back(TurnSignal); + mProperties.push_back(ClutchStatus); + mProperties.push_back((EngineOilPressure)); + mProperties.push_back(EngineCoolantTemperature); + mProperties.push_back(AccelerationX); + mProperties.push_back(AccelerationY); + mProperties.push_back(AccelerationZ); + mProperties.push_back(MassAirFlow); + + return mProperties; +} diff --git a/lib/vehicleproperty.h b/lib/vehicleproperty.h index 44e5ddb..40914d3 100644 --- a/lib/vehicleproperty.h +++ b/lib/vehicleproperty.h @@ -100,6 +100,8 @@ public: /**< Mass Air Flow. TODO: units */ static const Property MassAirFlow; + + static std::list capabilities(); };