ATLAS Offline Software
Loading...
Searching...
No Matches
TGCDatabase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace MuonTGC_Cabling {
8
10
11TGCDatabase::TGCDatabase(DatabaseType vtype, const std::string& vfilename,
12 const std::string& vblockname)
13 : m_filename(vfilename), m_blockname(vblockname), m_type(vtype) {}
14
16
17int TGCDatabase::getEntry(int entry, int column) const {
18 return m_database[entry].at(column);
19}
20
21int TGCDatabase::getEntrySize(int entry) const {
22 return m_database[entry].size();
23}
24
25int TGCDatabase::getMaxEntry(void) const {
26 return m_database.size();
27}
28
29bool TGCDatabase::update(const std::vector<int>&) {
30 // not implemented in the base class
31 return false;
32}
33
34int TGCDatabase::find(const std::vector<int>&) const {
35 // not implemented in the base class
36 return -1;
37}
38
39int TGCDatabase::getIndexDBIn(int* indexIn) const {
40 // not implemented in the base class
41 if (!indexIn) {
42 return -1;
43 }
44
45 return -1;
46}
47
48int TGCDatabase::getIndexDBOut(int* indexOut) const {
49 // not implemented in the base class
50 if (!indexOut) {
51 return -1;
52 }
53
54 return -1;
55}
56
57} // namespace MuonTGC_Cabling
virtual int getIndexDBIn(int *indexIn) const
virtual int getMaxEntry(void) const
virtual bool update(const std::vector< int > &)
TGCDatabase(DatabaseType type=NoDatabaseType)
virtual int getEntry(int entry, int column) const
virtual int find(const std::vector< int > &) const
virtual int getIndexDBOut(int *indexOut) const
std::vector< std::vector< int > > m_database
Definition TGCDatabase.h:56
virtual int getEntrySize(int entry) const