$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include <iostream> 00002 #include "otsdaq-core/ConfigurationPluginDataFormats/ARTDAQAggregatorTable.h" 00003 #include "otsdaq-coreMacros/TablePluginMacros.h" 00004 00005 using namespace ots; 00006 00007 //============================================================================== 00008 ARTDAQAggregatorConfiguration::ARTDAQAggregatorConfiguration(void) 00009 : TableBase("ARTDAQAggregatorConfiguration") 00010 { 00012 // WARNING: the names and the order MUST match the ones in the enum // 00014 // FSSRDACsConfigurationInfo.xml 00015 //<?xml version="1.0" encoding="UTF-8" standalone="no" ?> 00016 //<ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 00017 // xsi:noNamespaceSchemaLocation="TableInfo.xsd"> 00018 // <CONFIGURATION Name="ARTDAQAggregatorConfiguration"> 00019 // <VIEW Name="ARTDAQ_AGGREGATOR_CONFIGURATION" Type="File,Database,DatabaseTest"> 00020 // <COLUMN Name="SupervisorInstance" StorageName="SUPERVISOR_INSTANCE" 00021 // DataType="NUMBER" /> <COLUMN Name="AggregatorID" 00022 // StorageName="AGGREGATOR_ID" DataType="VARCHAR2"/> <COLUMN Name="Status" 00023 // StorageName="STATUS" DataType="VARCHAR2"/> <COLUMN 00024 // Name="ConfigurationString" StorageName="CONFIGURATION_STRING" 00025 // DataType="VARCHAR2"/> 00026 // </VIEW> 00027 // </CONFIGURATION> 00028 //</ROOT> 00029 } 00030 00031 //============================================================================== 00032 ARTDAQAggregatorConfiguration::~ARTDAQAggregatorConfiguration(void) {} 00033 00034 //============================================================================== 00035 void ARTDAQAggregatorConfiguration::init(ConfigurationManager* configManager) {} 00036 00037 //============================================================================== 00038 std::string ARTDAQAggregatorConfiguration::getAggregatorID( 00039 unsigned int supervisorInstance) const 00040 { 00041 std::string tmpID; 00042 TableBase::activeTableView_->getValue( 00043 tmpID, 00044 TableBase::activeTableView_->findRow(SupervisorInstance, supervisorInstance), 00045 AggregatorID); 00046 return tmpID; 00047 } 00048 00049 //============================================================================== 00050 bool ARTDAQAggregatorConfiguration::getStatus(unsigned int supervisorInstance) const 00051 { 00052 bool tmpStatus; 00053 TableBase::activeTableView_->getValue( 00054 tmpStatus, 00055 TableBase::activeTableView_->findRow(SupervisorInstance, supervisorInstance), 00056 Status); 00057 return tmpStatus; 00058 } 00059 00060 //============================================================================== 00061 const std::string ARTDAQAggregatorConfiguration::getConfigurationString( 00062 unsigned int supervisorInstance) const 00063 { 00064 std::string tmpConfiguration; 00065 TableBase::activeTableView_->getValue( 00066 tmpConfiguration, 00067 TableBase::activeTableView_->findRow(SupervisorInstance, supervisorInstance), 00068 ConfigurationString); 00069 return tmpConfiguration; 00070 } 00071 00072 DEFINE_OTS_CONFIGURATION(ARTDAQAggregatorConfiguration)