This commit is contained in:
2024-03-04 11:22:34 +01:00
parent e092ed9dea
commit 21c010d0be
12 changed files with 433 additions and 184 deletions

View File

@@ -15,23 +15,28 @@
#include <stdexcept>
#include <vector>
#include <string>
#include "ecmcDAQChannelItem.h"
/* Class for an data channel */
class ecmcDAQDataChannel {
public:
ecmcDAQDataChannel(int type);
~ecmcDAQDataChannel();
void connectToSources();
void addDataItem(char* name, int timeFormat);
void connectToDataSources();
void addDataItem(const char* name, int format);
size_t getDataElementCount();
double getData();
double getData(int first);
bool empty();
double getType();
private:
std::vector<ecmcDAQChannelItem*> dataItems_;
size_t itemCounter_;
double type_;
size_t itemCounter_;
size_t dataElementCount_;
size_t returnedDataCounter_;
size_t currItemIndex_;
int dataSourcesLinked_;
};
#endif /* ECMC_DAQ_DATA_CHANNEL_H_ */