The configuration of the NMOS node.
More...
#include <nmos_node.hpp>
|
| boost::system::result< void, Error > | validate () const |
| | Checks if the configuration is semantically valid, return a message if not.
|
| boost::json::object | to_json () const |
| auto constexpr | tie () const |
|
| static boost::system::result< Configuration, std::string > | from_json (const boost::json::value &json) |
| | Creates a configuration object from a JSON object.
|
The configuration of the NMOS node.
Definition at line 66 of file nmos_node.hpp.
◆ from_json()
| boost::system::result< Configuration, std::string > rav::nmos::Node::Configuration::from_json |
( |
const boost::json::value & | json | ) |
|
|
static |
Creates a configuration object from a JSON object.
- Parameters
-
| json | The JSON object to convert. |
- Returns
- A configuration object if the JSON is valid, otherwise an error message.
◆ tie()
| auto constexpr rav::nmos::Node::Configuration::tie |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
◆ to_json()
| boost::json::object rav::nmos::Node::Configuration::to_json |
( |
| ) |
const |
|
nodiscard |
- Returns
- The configuration as a JSON object.
◆ validate()
| boost::system::result< void, Error > rav::nmos::Node::Configuration::validate |
( |
| ) |
const |
|
nodiscard |
Checks if the configuration is semantically valid, return a message if not.
- Returns
- A result indicating whether the configuration is valid or not.
◆ operator!=
◆ operator==
◆ api_port
| uint16_t rav::nmos::Node::Configuration::api_port {0} |
◆ api_version
| ApiVersion rav::nmos::Node::Configuration::api_version {1, 3} |
◆ description
| std::string rav::nmos::Node::Configuration::description |
◆ enabled
| bool rav::nmos::Node::Configuration::enabled {false} |
◆ id
| boost::uuids::uuid rav::nmos::Node::Configuration::id |
◆ label
| std::string rav::nmos::Node::Configuration::label |
◆ operation_mode
◆ registry_address
| std::string rav::nmos::Node::Configuration::registry_address |
The documentation for this struct was generated from the following file: