Viam C++ SDK current
Loading...
Searching...
No Matches
handler_map.hpp
1#pragma once
2
3#include <viam/api/module/v1/module.pb.h>
4
5#include <viam/sdk/resource/resource.hpp>
6
7namespace viam {
8namespace sdk {
9
11 public:
13 void add_model(Model model, const RPCSubtype& subtype);
14
15 viam::module::v1::HandlerMap to_proto() const;
16 static const HandlerMap_ from_proto(const viam::module::v1::HandlerMap& proto);
17 friend std::ostream& operator<<(std::ostream& os, const HandlerMap_& hm);
18
19 private:
20 std::unordered_map<RPCSubtype, std::vector<Model>> handles_;
21};
22
23} // namespace sdk
24} // namespace viam
Definition handler_map.hpp:10
Defines the namespace_, family, and name for a particular resource model.
Definition resource_api.hpp:117
Definition resource_api.hpp:84