|
ChimeraTK-DeviceAccess
03.18.00
|
boost::shared_ptr< DeviceBackend > createBackend(const std::string &aliasOrUri)
Create a new backend and return the instance as a shared pointer.
void close()
Close the device.
boost::shared_ptr< DeviceBackend > getBackend()
Obtain the backend.
static BackendFactory & getInstance()
Static function to get an instance of factory.
VoidRegisterAccessor getVoidRegisterAccessor(const RegisterPath ®isterPathName, const AccessModeFlags &flags=AccessModeFlags({})) const
Get a VoidRegisterAccessor object for the given register.
Device()=default
Create device instance without associating a backend yet.
std::string readDeviceInfo() const
Return a device information string.
Catalogue of register information.
void open()
Re-open the device after previously closeing it by calling close(), or when it was constructed with a...
void activateAsyncRead() noexcept
Activate asyncronous read for all transfer elements where AccessMode::wait_for_new_data is set.
boost::shared_ptr< DeviceBackend > _deviceBackendPointer
BackendFactory is a the factory class to create devices.
Accessor class to read and write void-typed registers.
RegisterCatalogue getRegisterCatalogue() const
Return the register catalogue with detailed information on all registers.
Class to store a register path name.
bool isOpened() const
Check if the device is currently opened.
void checkPointersAreNotNull() const
MetadataCatalogue getMetadataCatalogue() const
Return the register catalogue with detailed information on all registers.
Set of AccessMode flags with additional functionality for an easier handling.
bool isFunctional() const
Return wether a device is working as intended, usually this means it is opened and does not have any ...
Exception thrown when a logic error has occured.
void setException(const std::string &message)
Set the device into an exception state.