1 #include "otsdaq-core/Macros/TablePluginMacros.h"
2 #include "otsdaq-core/TablePluginDataFormats/FESlowControlsTable.h"
4 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h"
11 FESlowControlsTable::FESlowControlsTable(
void) :
TableBase(
"FESlowControlsTable")
55 FESlowControlsTable::~FESlowControlsTable(
void) {}
64 __COUT__ <<
"*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*" << std::endl;
65 __COUT__ << configManager->__SELF_NODE__ << std::endl;
70 std::string childType;
71 auto childrenMap = configManager->__SELF_NODE__.getChildren();
72 for(
auto& childPair : childrenMap)
75 __COUT__ << childPair.first << std::endl;
76 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
77 __COUT__ <<
"childType=" << childType << std::endl;
79 if(childType[childType.size() - 1] ==
83 sscanf(&childType[0],
"%u", &sz);
86 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
88 <<
" The bit size given was " << sz
89 <<
" and it must be between 1 and 64." << std::endl;
90 __COUT_ERR__ <<
"\n" << ss.str();
94 else if(childType !=
"char" && childType !=
"short" && childType !=
"int" &&
95 childType !=
"unsigned int" && childType !=
"long long " &&
96 childType !=
"unsigned long long" && childType !=
"float" &&
97 childType !=
"double")
99 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
101 <<
"Valid data types (w/size in bytes) are as follows: "
103 <<
", char (" <<
sizeof(char) <<
"B), unsigned char ("
104 <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short)
105 <<
"B), unsigned short (" <<
sizeof(
unsigned short) <<
"B), int ("
106 <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int)
107 <<
"B), long long (" <<
sizeof(
long long) <<
"B), unsigned long long ("
108 <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float)
109 <<
"B), double (" <<
sizeof(
double) <<
"B)." << std::endl;
110 __COUT_ERR__ <<
"\n" << ss.str();