otsdaq  v2_04_01
VersionAliases_configuration.cc
1 #include <iostream>
2 #include "otsdaq-core/Macros/TablePluginMacros.h"
3 #include "otsdaq-core/TablePlugins/VersionAliases.h"
4 
5 using namespace ots;
6 
7 //==============================================================================
8 VersionAliases::VersionAliases(void) : TableBase("VersionAliases")
9 {
11  // WARNING: the names and the order MUST match the ones in the enum //
13  // VersionAlaisesInfo.xml
14  //<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
15  //<ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16  // xsi:noNamespaceSchemaLocation="TableInfo.xsd">
17  // <CONFIGURATION Name="VersionAliases">
18  // <VIEW Name="VERSION_ALIASES" Type="File,Database,DatabaseTest">
19  // <COLUMN Name="VersionAlias" StorageName="VERSION_ALIAS"
20  // DataType="VARCHAR2" /> <COLUMN Name="Version" StorageName="VERSION"
21  // DataType="NUMBER" /> <COLUMN Name="KOC" StorageName="KOC"
22  // DataType="VARCHAR2" />
23  // </VIEW>
24  // </CONFIGURATION>
25  //</ROOT>
26 }
27 
28 //==============================================================================
29 VersionAliases::~VersionAliases(void) {}
30 
31 //==============================================================================
32 void VersionAliases::init(ConfigurationManager* configManager)
33 {
34  /*
35  std::string keyName;
36  unsigned int keyValue;
37  theKeys_.clear();
38  for(unsigned int row=0; row<TableBase::configurationData_.getNumberOfRows(); row++)
39  {
40  TableBase::configurationData_.getValue(keyName,row,ConfigurationAlias);
41  TableBase::configurationData_.getValue(keyValue,row,TableGroupKeyId);
42  theKeys_[keyName] = keyValue;
43  }
44  */
45 }
46 
47 DEFINE_OTS_CONFIGURATION(VersionAliases)