int ZCE_Conf_PropertyTree::path_get_leaf(const std::string &path_str, const std::string &key_str, ZCE_Time_Value &val) const { std::string value_str; int ret = path_get_leaf<std::string>(path_str, key_str, value_str); if (0 != ret) { return ret; } val.from_string(value_str.c_str(), false, ZCE_LIB::TIME_STRFMT_US_SEC); return 0; }
ZCE_Time_Value str_to_value(const char *str) { ZCE_Time_Value val; val.from_string(str, false, ZCE_LIB::TIME_STRFMT_US_SEC); return val; }