sysmgr/peripheral/common.cc
bool ConvertStringToFloat(const std::string& value_str, float *value) {
  std::stringstream ss(value_str);

  if((ss >> *value).fail()) {
    *value = 0.0;
    LOG(LS_ERROR) << "ConvertStringToFloat: Failed to convert" << std::endl;
    return false;
  }
  return true;
}
/* Convert from string to floating point number */
Convert from string to floating point number
Convert from string to floating point number
bool ConvertStringToFloat(const std::string& value_str, float *value) {
  std::stringstream ss(value_str);
  if((ss >> *value).fail()) {
    *value = 0.0;
    LOG(LS_ERROR) << "ConvertStringToFloat: Failed to convert" << std::endl;
    return false;
  }
  return true;
}
bool ConvertStringToFloat ( const std :: string & value_str , float * value ) { std :: stringstream ss ( value_str ) ; if ( ( ss >> * value ) . fail ( ) ) { * value = 0.0 ; LOG ( LS_ERROR ) << " " << std :: endl ; return false ; } return true ; }
Convert from string to floating point number
Convert from string to floating point number