1 #ifndef __CHAN_MAP_V1495_H__
2 #define __CHAN_MAP_V1495_H__
3 #include <unordered_map>
16 typedef std::vector<MapItem> List_t;
19 typedef std::tuple<short, short, short> DetEleLvl_t;
20 typedef std::unordered_map<RocBoardChan_t, DetEleLvl_t, RocBoardChanHash> Map_t;
27 void Add (
const short roc,
const int board,
const short chan,
const std::string det,
const short ele,
const short lvl);
28 void Add (
const short roc,
const int board,
const short chan,
const std::string det_name,
const short det_id,
const short ele,
const short lvl);
31 bool Find(
const short roc,
const int board,
const short chan,
short& det,
short& ele,
short& lvl);
32 void Print(std::ostream& os);
void ReadDbTable(DbSvc &db)
int ReadFileCont(LineList &lines)
void WriteDbTable(DbSvc &db)
void Print(std::ostream &os)
int WriteFileCont(std::ostream &os)
bool Find(const short roc, const int board, const short chan, short &det, short &ele, short &lvl)
void Add(const short roc, const int board, const short chan, const std::string det, const short ele, const short lvl)
Standard interface with SQL database.
std::vector< std::string > LineList