|
ChimeraTK-DeviceAccess
03.18.00
|
Go to the documentation of this file.
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);
std::string serialize() const
Get a comma seperated list of all flag strings contained in the class.
static const std::string & getString(AccessMode flag)
Get a string representation of the given flag.
@ raw
Raw access: disable any possible conversion from the original hardware data type into the given UserT...
bool operator==(const AccessModeFlags &other) const
Check whether two sets of acces mode flags are the same.
void add(AccessMode flag)
Add the given flag to the set.
void remove(AccessMode flag)
Remove the given flag from the set.
bool operator<(const AccessModeFlags &other) const
"Less than" operator, e.g.
bool has(AccessMode flag) const
Check if a certain flag is in the set.
AccessModeFlags()=default
static AccessModeFlags deserialize(const std::string &listOfflags)
Get an AcessModeFlags object from a comma seperated list of flag strings.
bool empty() const
Check if the set is empty (i.e.
@ wait_for_new_data
Make any read blocking until new data has arrived since the last read.
void checkForUnknownFlags(const std::set< AccessMode > &knownFlags) const
Check of any flag which is not in the given set "knownFlags" is set.
AccessMode
Enum type with access mode flags for register accessors.
Set of AccessMode flags with additional functionality for an easier handling.