58 [[nodiscard]] std::string_view
version() noexcept;
77 const std::filesystem::path& path,
79 std::optional<
binding::ProfileSupport> binding_support = std::nullopt);
90 const std::filesystem::path& path,
91 std::optional<
binding::ProfileSupport> binding_support = std::nullopt);
101 const std::filesystem::path& path,
102 std::optional<
binding::ProfileSupport> binding_support = std::nullopt);
110 const std::filesystem::path& path,
111 std::optional<
binding::ProfileSupport> binding_support = std::nullopt);
Object representation of a Confidentiality Label as per ADatP-4774.
Lightweight helpers for generating NATO confidentiality metadata.
Definition binding.h:32
std::expected< T, Error > Expected
Convenience typedef to standardise usage of nmbs::error in all std::expected usages.
Definition expected.h:116
void cleanup()
Free up any allocated memory and state to keep tools like Valgrind clean.
Expected< std::optional< binding::BindingInformation > > read_binding(const std::filesystem::path &path, std::optional< binding::ProfileSupport > binding_support=std::nullopt)
Reads the full ADatP-4778 binding from the file.
Expected< std::optional< std::string > > read_binding_xml(const std::filesystem::path &path, std::optional< binding::ProfileSupport > binding_support=std::nullopt)
Reads the full ADatP-4778 binding from the file.
Expected< void > remove_binding(const std::filesystem::path &path, std::optional< binding::ProfileSupport > binding_support=std::nullopt)
Removes the ADatP-4778 binding from the file.
Expected< std::string > write_labels(const std::filesystem::path &path, const std::vector< ConfidentialityLabel > &confidentiality_labels, std::optional< binding::ProfileSupport > binding_support=std::nullopt)
Writes ADatP‑4778 binding information using the best possible binding profile.
std::string_view version() noexcept
Returns the semantic version of the library.
Struct representation of the ADatP-4774 "Confidentiality Label".
Definition confidentiality_label.h:45