MCPcopy Create free account
hub / github.com/AimRT/AimRT / ToString

Method ToString

src/interface/aimrt_module_cpp_interface/rpc/rpc_status.h:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 uint32_t Code() const { return code_; }
32
33 std::string ToString() const {
34 return std::string(OK() ? "suc" : "fail") +
35 ", code " + std::to_string(code_) +
36 ", msg: " + std::string(GetCodeMsg(code_));
37 }
38
39 static std::string_view GetCodeMsg(uint32_t code) {
40 static const std::unordered_map<uint32_t, std::string_view> kCodeMsgMap{

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36