Viam C++ SDK
current
Loading...
Searching...
No Matches
src
viam
sdk
module
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
7
namespace
viam {
8
namespace
sdk {
9
10
class
HandlerMap_
{
11
public
:
12
HandlerMap_
();
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
viam::sdk::HandlerMap_
Definition
handler_map.hpp:10
viam::sdk::Model
Defines the namespace_, family, and name for a particular resource model.
Definition
resource_api.hpp:117
viam::sdk::RPCSubtype
Definition
resource_api.hpp:84
Generated by
1.10.0