libnmbs 1.0.0
Loading...
Searching...
No Matches
binding.h
Go to the documentation of this file.
1
26
27#pragma once
28
29#include <filesystem>
30
32{
33 typedef std::uint32_t AccessMode;
35 {
37
38 am_read = 1 << 0,
39
40 am_write = 1 << 1
41 };
42
43
44 typedef std::uint32_t ProfileSupport;
46 {
47
51
54 ps_xmp = 1 << 0,
55
58 ps_sidecar = 1 << 1,
59
62 ps_xml = 1 << 2,
63
66 ps_ext4 = 1 << 3
67
68 };
69
70
84 [[nodiscard]] ProfileSupport support(const std::filesystem::path& path);
85
86}
Definition binding.h:32
ProfileSupportFlags
Definition binding.h:46
@ ps_xmp
The file supports the XMP binding profile.
Definition binding.h:54
@ ps_ext4
The file supports the EXT4 binding profile.
Definition binding.h:66
@ ps_xml
The file supports the XML binding profile.
Definition binding.h:62
@ ps_sidecar
The file supports the Sidecar binding profile.
Definition binding.h:58
@ ps_none
The file does not support ADatP-4774 labels (at least in this implementation...).
Definition binding.h:50
AccessModeFlags
Definition binding.h:35
@ am_write
Definition binding.h:40
@ am_read
Definition binding.h:38
@ am_none
Definition binding.h:36
std::uint32_t ProfileSupport
Definition binding.h:44
ProfileSupport support(const std::filesystem::path &path)
File analysis to check the binding capabilities of the path.
std::uint32_t AccessMode
Definition binding.h:33