ATLAS Offline Software
Loading...
Searching...
No Matches
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
12void
13TrigConf::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
20void
21TrigConf::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}
void fillQuery(coral::IQuery *q, coral::AttributeList &attList)
Definition DBHelper.cxx:13
void printTable(const coral::ITable &teTable)
Definition DBHelper.cxx:21