ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfStorage
src
DBHelper.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./DBHelper.h
"
6
7
#include <iostream>
8
9
#include "RelationalAccess/IColumn.h"
10
#include "RelationalAccess/ITableDescription.h"
11
12
void
13
TrigConf::fillQuery
(coral::IQuery *q, coral::AttributeList& attList) {
14
q->defineOutput(attList);
15
for
(coral::AttributeList::iterator attr=attList.begin(); attr!=attList.end(); ++attr)
16
q->addToOutputList(attr->specification().name());
17
}
18
19
20
void
21
TrigConf::printTable
(
const
coral::ITable & table) {
22
const
coral::ITableDescription & desc = table.description();
23
for
(
int
i=0; i<desc.numberOfColumns(); ++i) {
24
const
coral::IColumn & col = desc.columnDescription(i);
25
std::cout <<
" "
<< col.name() << std::endl;
26
}
27
}
DBHelper.h
TrigConf::fillQuery
void fillQuery(coral::IQuery *q, coral::AttributeList &attList)
Definition
DBHelper.cxx:13
TrigConf::printTable
void printTable(const coral::ITable &teTable)
Definition
DBHelper.cxx:21
Generated on
for ATLAS Offline Software by
1.14.0