3 #include "../settingssingleton.h" 15 device->
init(0, *stream);
17 QThread *sampleT =
new QThread;
18 device->moveToThread(sampleT);
33 std::this_thread::sleep_for(std::chrono::milliseconds(300));
34 if(!pifacecad_read_switch(5)) {
36 logger->
save(*stream);
void setSourceId(int sourceId)
Used to set private int name.
void stop()
Stops the running device.
static SettingsSingleton & instance()
Retrives a reference to the ONE and ONLY SettingsSingleton created for the application.
void save(DataStream &input)
Saves the input to a txt-file, header-file and edf-file(if bool saveAsEdf in SettingsSingleton) ...
Abstract Interface that should be used for storing data in the memory.
void init(int, DataStream &)
Prepares a new data-collection,.
Handles which device to connect through the DeviceInterface.