-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathcontrol_protocol_resources.h
54 lines (44 loc) · 3.13 KB
/
control_protocol_resources.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef NMOS_CONTROL_PROTOCOL_RESOURCES_H
#define NMOS_CONTROL_PROTOCOL_RESOURCES_H
#include "nmos/control_protocol_typedefs.h" // for details::nc_oid definition
#include "nmos/settings.h"
namespace nmos
{
namespace experimental
{
struct control_protocol_state;
}
struct control_protocol_resource;
// create block resource
control_protocol_resource make_block(nc_oid oid, nc_oid owner, const utility::string_t& role, const utility::string_t& user_label, const utility::string_t& description, const web::json::value& touchpoints = web::json::value::null(), const web::json::value& runtime_property_constraints = web::json::value::null(), const web::json::value& members = web::json::value::array());
// create Root block resource
control_protocol_resource make_root_block();
// create Device manager resource
control_protocol_resource make_device_manager(nc_oid oid, const nmos::settings& settings);
// create Class manager resource
control_protocol_resource make_class_manager(nc_oid oid, const nmos::experimental::control_protocol_state& control_protocol_state);
// Monitoring feature set control classes
//
// create Receiver Monitor resource
control_protocol_resource make_receiver_monitor(nc_oid oid, bool constant_oid, nmos::nc_oid owner, const utility::string_t& role, const utility::string_t& user_label, const utility::string_t& description, const web::json::value& touchpoints = web::json::value::null(), const web::json::value& runtime_property_constraints = web::json::value::null(), bool enabled = true,
nc_connection_status::status connection_status = nc_connection_status::status::undefined,
const utility::string_t& connection_status_message = U(""),
nc_payload_status::status payload_status = nc_payload_status::status::undefined,
const utility::string_t& payload_status_message = U("")
);
// create Receiver Monitor Protected resource
control_protocol_resource make_receiver_monitor_protected(nc_oid oid, bool constant_oid, nc_oid owner, const utility::string_t& role, const utility::string_t& user_label, const utility::string_t& description, const web::json::value& touchpoints, const web::json::value& runtime_property_constraints = web::json::value::null(), bool enabled = true,
nc_connection_status::status connection_status = nc_connection_status::status::undefined,
const utility::string_t& connection_status_message = U(""),
nc_payload_status::status payload_status = nc_payload_status::status::undefined,
const utility::string_t& payload_status_message = U(""),
bool signal_protection_status = true
);
// Identification feature set control classes
//
// create Ident Beacon resource
control_protocol_resource make_ident_beacon(nc_oid oid, bool constant_oid, nc_oid owner, const utility::string_t& role, const utility::string_t& user_label, const utility::string_t& description, const web::json::value& touchpoints = web::json::value::null(), const web::json::value& runtime_property_constraints = web::json::value::null(), bool enabled = true,
bool active = false
);
}
#endif