70 [[nodiscard]]
bool empty()
const;
101 [[nodiscard]] std::string
serialize()
const;
115 std::set<AccessMode> _flags;
120 [[nodiscard]]
static const std::map<AccessMode, std::string>& getStringMap();
125 [[nodiscard]]
static AccessMode getAccessMode(
const std::string& flagName);
130 [[nodiscard]]
static std::vector<std::string> split(
const std::string& s);
Set of AccessMode flags with additional functionality for an easier handling.
static AccessModeFlags deserialize(const std::string &listOfflags)
Get an AcessModeFlags object from a comma seperated list of flag strings.
bool operator<(const AccessModeFlags &other) const
"Less than" operator, e.g.
void remove(AccessMode flag)
Remove the given flag from the set.
std::string serialize() const
Get a comma seperated list of all flag strings contained in the class.
bool has(AccessMode flag) const
Check if a certain flag is in the set.
AccessModeFlags()=default
bool empty() const
Check if the set is empty (i.e.
void add(AccessMode flag)
Add the given flag to the set.
void checkForUnknownFlags(const std::set< AccessMode > &knownFlags) const
Check of any flag which is not in the given set "knownFlags" is set.
bool operator==(const AccessModeFlags &other) const
Check whether two sets of acces mode flags are the same.
static const std::string & getString(AccessMode flag)
Get a string representation of the given flag.
This header collects some conversion routines which should be useful both for ApplicationCore Python ...
AccessMode
Enum type with access mode flags for register accessors.
@ wait_for_new_data
Make any read blocking until new data has arrived since the last read.
@ raw
Raw access: disable any possible conversion from the original hardware data type into the given UserT...