1 #include "otsdaq-core/Macros/TablePluginMacros.h"
2 #include "otsdaq-core/TablePlugins/FESlowControlsTable.h"
4 #include "otsdaq-core/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 =
38 configManager->__SELF_NODE__.getChildren();
39 for(
auto& childPair : childrenMap)
42 __COUT__ << childPair.first << std::endl;
43 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
44 __COUT__ <<
"childType=" << childType << std::endl;
46 if(childType[childType.size() - 1] ==
50 sscanf(&childType[0],
"%u", &sz);
53 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
55 <<
" The bit size given was " << sz
56 <<
" and it must be between 1 and 64." << std::endl;
57 __COUT_ERR__ <<
"\n" << ss.str();
61 else if(childType != TableViewColumnInfo::DATATYPE_STRING_DEFAULT &&
62 childType !=
"char" && childType !=
"unsigned char" &&
63 childType !=
"short" && childType !=
"unsigned short" &&
64 childType !=
"int" && childType !=
"unsigned int" &&
65 childType !=
"long long " && childType !=
"unsigned long long" &&
66 childType !=
"float" && childType !=
"double")
68 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
70 <<
"Valid data types (w/size in bytes) are as follows: "
72 <<
", char (" <<
sizeof(char) <<
"B), unsigned char ("
73 <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short)
74 <<
"B), unsigned short (" <<
sizeof(
unsigned short) <<
"B), int ("
75 <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int)
76 <<
"B), long long (" <<
sizeof(
long long) <<
"B), unsigned long long ("
77 <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float)
78 <<
"B), double (" <<
sizeof(
double) <<
"B)." << std::endl;
79 __COUT_ERR__ <<
"\n" << ss.str();