ChimeraTK-DeviceAccess
03.18.00
useCustomBackend.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
#include <ChimeraTK/Device.h>
5
#include <ChimeraTK/Utilities.h>
6
7
int
main
() {
8
ChimeraTK::setDMapFilePath
(
"registration_example.dmap"
);
9
// The device in known now because it is specified in the dmap file.
10
11
ChimeraTK::Device
myCustomDevice;
12
myCustomDevice.
open
(
"MY_CUSTOM_DEVICE"
);
13
14
return
0;
15
}
ChimeraTK::Device
Class allows to read/write registers from device.
Definition:
Device.h:39
ChimeraTK::Device::open
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
Definition:
Device.cc:58
main
int main()
Definition:
useCustomBackend.cpp:7
ChimeraTK::setDMapFilePath
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
Definition:
Utilities.cpp:327
sources
ChimeraTK-DeviceAccess
examples
custom_backend_registration
useCustomBackend.cpp
Generated by
1.8.17