$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include <iostream> 00002 #include "otsdaq-core/ConfigurationPluginDataFormats/ARTDAQConsumerTable.h" 00003 #include "otsdaq-coreMacros/TablePluginMacros.h" 00004 00005 using namespace ots; 00006 00007 //============================================================================== 00008 ARTDAQConsumerConfiguration::ARTDAQConsumerConfiguration(void) 00009 : TableBase("ARTDAQConsumerConfiguration") 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="ARTDAQConsumerConfiguration"> 00019 // <VIEW Name="ARTDAQ_CONSUMER_CONFIGURATION" Type="File,Database,DatabaseTest"> 00020 // <COLUMN Name="ProcessorID" StorageName="PROCESSOR_ID" 00021 // DataType="VARCHAR2" /> // <COLUMN Name="Status" 00022 // StorageName="STATUS" DataType="VARCHAR2" /> <COLUMN 00023 // Name="ConfigurationString" StorageName="CONFIGURATION_STRING" 00024 // DataType="VARCHAR2"/> 00025 // </VIEW> 00026 // </CONFIGURATION> 00027 //</ROOT> 00028 } 00029 00030 //============================================================================== 00031 ARTDAQConsumerConfiguration::~ARTDAQConsumerConfiguration(void) {} 00032 00033 //============================================================================== 00034 void ARTDAQConsumerConfiguration::init(ConfigurationManager* configManager) {} 00035 00036 //============================================================================== 00037 const std::string ARTDAQConsumerConfiguration::getConfigurationString( 00038 std::string processorUID) const 00039 { 00040 std::string tmpConfiguration; 00041 TableBase::activeTableView_->getValue( 00042 tmpConfiguration, 00043 TableBase::activeTableView_->findRow(ProcessorID, processorUID), 00044 ConfigurationString); 00045 return tmpConfiguration; 00046 } 00047 00048 DEFINE_OTS_CONFIGURATION(ARTDAQConsumerConfiguration)