Template Function Common::extract_telemetry_value(const std::string&, const std::string&, T&)#

Function Documentation#

template<typename T>
void Common::extract_telemetry_value(const std::string &jstring, const std::string &jkey, T &value)#

extract a correctly typed value from a JSON message using a specific key

Parameters:
  • jstring – [in] serialized JSON message string

  • jkey – [in] key to look for in JSON string

  • value – [out] reference of type T to value to return