From 508908d76313b7d1c6e3e956eeddbfce426a525a Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley Date: Thu, 4 May 2023 22:41:15 +0100 Subject: [PATCH] Add tags for BCP-002-02 NMOS Asset Distinguishing Information --- Development/cmake/NmosCppLibraries.cmake | 1 + Development/nmos/asset.h | 20 ++++++++++++++++++++ README.md | 1 + 3 files changed, 22 insertions(+) create mode 100644 Development/nmos/asset.h diff --git a/Development/cmake/NmosCppLibraries.cmake b/Development/cmake/NmosCppLibraries.cmake index b6d6d972a..944eb9902 100644 --- a/Development/cmake/NmosCppLibraries.cmake +++ b/Development/cmake/NmosCppLibraries.cmake @@ -811,6 +811,7 @@ set(NMOS_CPP_NMOS_HEADERS nmos/api_downgrade.h nmos/api_utils.h nmos/api_version.h + nmos/asset.h nmos/capabilities.h nmos/certificate_handlers.h nmos/certificate_settings.h diff --git a/Development/nmos/asset.h b/Development/nmos/asset.h new file mode 100644 index 000000000..fafd2c834 --- /dev/null +++ b/Development/nmos/asset.h @@ -0,0 +1,20 @@ +#ifndef NMOS_ASSET_H +#define NMOS_ASSET_H + +#include "cpprest/json_utils.h" + +// Asset Distinguishing Information +// See https://specs.amwa.tv/bcp-002-02/ +// and https://specs.amwa.tv/nmos-parameter-registers/branches/main/tags/ +namespace nmos +{ + namespace fields + { + const web::json::field_as_value_or asset_manufacturer{ U("urn:x-nmos:tag:asset:manufacturer/v1.0"), web::json::value::array() }; + const web::json::field_as_value_or asset_product_name{ U("urn:x-nmos:tag:asset:product/v1.0"), web::json::value::array() }; + const web::json::field_as_value_or asset_instance_id{ U("urn:x-nmos:tag:asset:instance-id/v1.0"), web::json::value::array() }; + const web::json::field_as_value_or asset_function{ U("urn:x-nmos:tag:asset:function/v1.0"), web::json::value::array() }; + } +} + +#endif diff --git a/README.md b/README.md index db34aad60..050394924 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ This repository contains an implementation of the [AMWA Networked Media Open Spe - [AMWA IS-08 NMOS Audio Channel Mapping Specification](https://specs.amwa.tv/is-08/) - [AMWA IS-09 NMOS System Parameters Specification](https://specs.amwa.tv/is-09/) (originally defined in JT-NM TR-1001-1:2018 Annex A) - [AMWA BCP-002-01 NMOS Grouping Recommendations - Natural Grouping](https://specs.amwa.tv/bcp-002-01/) +- [AMWA BCP-002-02 NMOS Asset Distinguishing Information](https://specs.amwa.tv/bcp-002-02/) - [AMWA BCP-003-01 Secure Communication in NMOS Systems](https://specs.amwa.tv/bcp-003-01/) - [AMWA BCP-004-01 NMOS Receiver Capabilities](https://specs.amwa.tv/bcp-004-01/) - [AMWA BCP-006-01 NMOS With JPEG XS](https://specs.amwa.tv/bcp-006-01/)