libnmbs 1.0.0
Loading...
Searching...
No Matches
binding.h
Go to the documentation of this file.
1
27
28#pragma once
29
30#include <filesystem>
31
38{
41 typedef std::uint32_t AccessMode;
42
46 {
50
53 am_read = 1 << 0,
54
57 am_write = 1 << 1
58 };
59
62 typedef std::uint32_t ProfileSupport;
63
67 {
68
72
75 ps_xmp = 1 << 0,
76
79 ps_sidecar = 1 << 1,
80
83 ps_xml = 1 << 2,
84
87 ps_ext4 = 1 << 3
88
89 };
90
91
104 [[nodiscard]] ProfileSupport support(const std::filesystem::path& path);
105
106}
Functionality for the numerous binding profiles of ADatP-4778.
Definition binding.h:38
ProfileSupportFlags
Flags representing supported binding profiles for a specific file.
Definition binding.h:67
@ ps_xmp
The file supports the XMP binding profile.
Definition binding.h:75
@ ps_ext4
The file supports the EXT4 binding profile.
Definition binding.h:87
@ ps_xml
The file supports the XML binding profile.
Definition binding.h:83
@ ps_sidecar
The file supports the Sidecar binding profile.
Definition binding.h:79
@ ps_none
The file does not support ADatP-4774 labels.
Definition binding.h:71
AccessModeFlags
Flags representing read/write access capabilities.
Definition binding.h:46
@ am_write
Write access.
Definition binding.h:57
@ am_read
Read access.
Definition binding.h:53
@ am_none
No access.
Definition binding.h:49
std::uint32_t ProfileSupport
Bitmask type for indicating supported ADatP-4778 binding profiles.
Definition binding.h:62
ProfileSupport support(const std::filesystem::path &path)
File analysis to check the binding capabilities of the path.
std::uint32_t AccessMode
Bitmask type for evaluating file access modes.
Definition binding.h:41