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 __COUT_TYPE__(TLVL_DEBUG + 20) << __COUT_HDR__ << childPair.first << std::endl;
35 childPair.second.getNode(colNames_.colDataType_).getValue(childType);
36 __COUT_TYPE__(TLVL_DEBUG + 20)
37 << __COUT_HDR__ <<
"childType=" << childType << std::endl;
39 if(childType[childType.size() - 1] ==
43 sscanf(&childType[0],
"%u", &sz);
46 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
48 <<
" The bit size given was " << sz
49 <<
" and it must be between 1 and 64." << std::endl;
50 __COUT_ERR__ <<
"\n" << ss.str();
54 else if(childType != TableViewColumnInfo::DATATYPE_STRING_DEFAULT &&
55 childType !=
"char" && childType !=
"unsigned char" &&
56 childType !=
"short" && childType !=
"unsigned short" &&
57 childType !=
"int" && childType !=
"unsigned int" &&
58 childType !=
"long long " && childType !=
"unsigned long long" &&
59 childType !=
"float" && childType !=
"double")
61 __SS__ <<
"Data type '" << childType <<
"' for UID=" << childPair.first
63 <<
"Valid data types (w/size in bytes) are as follows: "
65 <<
", char (" <<
sizeof(char) <<
"B), unsigned char ("
66 <<
sizeof(
unsigned char) <<
"B), short (" <<
sizeof(short)
67 <<
"B), unsigned short (" <<
sizeof(
unsigned short) <<
"B), int ("
68 <<
sizeof(int) <<
"B), unsigned int (" <<
sizeof(
unsigned int)
69 <<
"B), long long (" <<
sizeof(
long long) <<
"B), unsigned long long ("
70 <<
sizeof(
unsigned long long) <<
"B), float (" <<
sizeof(float)
71 <<
"B), double (" <<
sizeof(
double) <<
"B)." << std::endl;
72 __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.