87 inline bool readOnly(
Access access)
91 case Access::READ_LINEAR:
99 throw std::runtime_error(
"Unreachable!");
102 inline bool write(
Access access)
104 return !readOnly(access);
107 inline bool writeOnly(
Access access)
111 case Access::READ_LINEAR:
119 throw std::runtime_error(
"Unreachable!");
122 inline bool read(
Access access)
124 return !writeOnly(access);
136 [[deprecated(
"AccessType is deprecated, use Access instead.")]]
typedef Access
Public definitions of openPMD-api.
Definition: Date.cpp:29
Access
File access mode to use during IO.
Definition: Access.hpp:30
@ CREATE
create new series and truncate existing (files)
@ APPEND
write new iterations to an existing series without reading
@ READ_ONLY
Open Series as read-only, fails if Series is not found.
@ READ_RANDOM_ACCESS
more explicit alias for READ_ONLY
@ READ_WRITE
Open existing Series as writable.