6#include <boost/optional/optional.hpp>
8#include <viam/sdk/common/proto_convert.hpp>
9#include <viam/sdk/common/proto_value.hpp>
10#include <viam/sdk/components/component.hpp>
11#include <viam/sdk/resource/resource_api.hpp>
26class ResponseMetadata;
35const std::string kComponent =
"component";
36const std::string kResource =
"resource";
37const std::string kService =
"service";
38const std::string kRDK =
"rdk";
39const std::string kBuiltin =
"builtin";
41using time_pt = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>;
49namespace proto_convert_details {
53 void operator()(time_pt, google::protobuf::Timestamp*)
const;
58 time_pt operator()(
const google::protobuf::Timestamp*)
const;
63 void operator()(std::chrono::microseconds, google::protobuf::Duration*)
const;
68 std::chrono::microseconds operator()(
const google::protobuf::Duration*)
const;
83std::vector<unsigned char> string_to_bytes(std::string
const& s);
84std::string bytes_to_string(std::vector<unsigned char>
const& b);
88std::pair<std::string, std::string> long_name_to_remote_and_short(
const std::string& long_name);
91ProtoStruct debug_map();
95ProtoStruct debug_map(std::string debug_key);
99void add_debug_entry(ProtoStruct& map, std::string debug_key);
102void add_debug_entry(ProtoStruct& map);
107ProtoStruct with_debug_entry(ProtoStruct&& map, std::string debug_key);
111ProtoStruct with_debug_entry(ProtoStruct&& map);
121void set_logger_severity_from_args(
int argc,
char** argv);
126bool from_dm_from_extra(
const ProtoStruct& extra);
Definition proto_convert.hpp:24
Definition proto_convert.hpp:18