1 #include "otsdaq/Macros/TablePluginMacros.h"
2 #include "otsdaq/TablePlugins/FESlowControlsTable.h"
4 #include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
11 FESlowControlsTable::FESlowControlsTable(
void) :
TableBase(
"FESlowControlsTable") {}
14 FESlowControlsTable::~FESlowControlsTable(
void) {}
23 bool isFirstAppInContext = configManager->isOwnerFirstAppInContext();
25 __COUTV__(isFirstAppInContext);
26 if(!isFirstAppInContext)
30 __COUT__ <<
"*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*" << std::endl;
31 __COUT__ << configManager->__SELF_NODE__ << std::endl;
36 std::string childType;
37 std::vector<std::pair<std::string, ConfigurationTree>> childrenMap = configManager->__SELF_NODE__.getChildren();
38 for(
auto& childPair : childrenMap)
41 __COUT__ << childPair.first << std::endl;
42 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
43 __COUT__ <<
"childType=" << childType << std::endl;
45 if(childType[childType.size() - 1] ==
'b')
48 sscanf(&childType[0],
"%u", &sz);
51 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first <<
" is invalid. "
52 <<
" The bit size given was " << sz <<
" and it must be between 1 and 64." << std::endl;
53 __COUT_ERR__ <<
"\n" << ss.str();
57 else if(childType != TableViewColumnInfo::DATATYPE_STRING_DEFAULT && childType !=
"char" && childType !=
"unsigned char" && childType !=
"short" &&
58 childType !=
"unsigned short" && childType !=
"int" && childType !=
"unsigned int" && childType !=
"long long " &&
59 childType !=
"unsigned long long" && childType !=
"float" && childType !=
"double")
61 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first <<
" is invalid. "
62 <<
"Valid data types (w/size in bytes) are as follows: "
64 <<
", char (" <<
sizeof(char) <<
"B), unsigned char (" <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short) <<
"B), unsigned short ("
65 <<
sizeof(
unsigned short) <<
"B), int (" <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int) <<
"B), long long ("
66 <<
sizeof(
long long) <<
"B), unsigned long long (" <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float) <<
"B), double ("
67 <<
sizeof(
double) <<
"B)." << std::endl;
68 __COUT_ERR__ <<
"\n" << ss.str();