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 if(!isFirstAppInContext)
28 std::string childType;
29 std::vector<std::pair<std::string, ConfigurationTree>> childrenMap =
31 for(
auto& childPair : childrenMap)
34 __COUTS__(20) << childPair.first << std::endl;
35 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
36 __COUTS__(20) <<
"childType=" << childType << std::endl;
38 if(childType[childType.size() - 1] ==
42 sscanf(&childType[0],
"%u", &sz);
45 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
47 <<
" The bit size given was " << sz
48 <<
" and it must be between 1 and 64." << std::endl;
49 __COUT_ERR__ <<
"\n" << ss.str();
53 else if(childType != TableViewColumnInfo::DATATYPE_STRING_DEFAULT &&
54 childType !=
"char" && childType !=
"unsigned char" &&
55 childType !=
"short" && childType !=
"unsigned short" &&
56 childType !=
"int" && childType !=
"unsigned int" &&
57 childType !=
"long long " && childType !=
"unsigned long long" &&
58 childType !=
"float" && childType !=
"double")
60 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
62 <<
"Valid data types (w/size in bytes) are as follows: "
64 <<
", char (" <<
sizeof(char) <<
"B), unsigned char ("
65 <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short)
66 <<
"B), unsigned short (" <<
sizeof(
unsigned short) <<
"B), int ("
67 <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int)
68 <<
"B), long long (" <<
sizeof(
long long) <<
"B), unsigned long long ("
69 <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float)
70 <<
"B), double (" <<
sizeof(
double) <<
"B)." << std::endl;
71 __COUT_ERR__ <<
"\n" << ss.str();
std::vector< std::pair< std::string, ConfigurationTree > > getChildren(std::map< std::string, TableVersion > *memberMap=0, std::string *accumulatedTreeErrors=0) const
void init(ConfigurationManager *configManager)
Methods.