Defines the namespace_, family, and name for a particular resource model.
More...
#include <resource_api.hpp>
|
std::string | to_string () const |
|
| Model (std::string namespace_, std::string family, std::string model_name) |
|
| Model (ModelFamily model, std::string model_name) |
|
|
static Model | from_str (std::string model) |
| Parses a single model string into a Model, using default values for namespace and family if not provided.
|
|
|
bool | operator== (const Model &lhs, const Model &rhs) |
|
Defines the namespace_, family, and name for a particular resource model.
◆ from_str()
static Model viam::sdk::Model::from_str |
( |
std::string | model | ) |
|
|
static |
Parses a single model string into a Model, using default values for namespace and family if not provided.
- Exceptions
-
`Exception` | if given an invalid model (i.e., one with non-word characters). |
The documentation for this class was generated from the following file: