This commit is contained in:
2024-03-04 21:30:23 +01:00
parent e7d90c550a
commit 16f1795e32
9 changed files with 160 additions and 47 deletions

View File

@@ -229,17 +229,24 @@ class ecmcDAQChannelItem {
return data;
}
/* Returns true if all data have been retruned with getData().
*/
bool empty(){
return dataIndexToReturn_ >= dataElementCount_;
}
size_t getDataElementCount(){
size_t getDataElementCount(){
return dataElementCount_;
}
int validate() {
if(dataElementCount_==0) {
throw std::runtime_error("Error: DAQ-data item element count 0");
}
return 0;
}
ecmcDataItem* dataItem_;
ecmcDataItemInfo* dataItemInfo_;
std::string name_;