Move sensorClass and subtype to separate functions
Cleaning up the code by moving the sensor Class, sensor subtype
and sensor Scale & Offset value to separate functions in
IpmbSensor.
TESTED: Tested on Facebook YosemiteV2 platform and verified the
IpmbSensor sensors.
Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com>
Change-Id: Id185ce0d592039d2999902c5ae88a49891c7a807
diff --git a/include/IpmbSensor.hpp b/include/IpmbSensor.hpp
index b23c0f3..b006652 100644
--- a/include/IpmbSensor.hpp
+++ b/include/IpmbSensor.hpp
@@ -93,6 +93,9 @@
void loadDefaults(void);
void runInitCmd(void);
bool processReading(const std::vector<uint8_t>& data, double& resp);
+ void parseConfigValues(const SensorBaseConfigMap& entry);
+ bool sensorClassType(const std::string& sensorClass);
+ void sensorSubType(const std::string& sensorTypeName);
IpmbType type = IpmbType::none;
IpmbSubType subType = IpmbSubType::none;