1 #ifndef __CHAN_MAP_TAIWAN_H__
2 #define __CHAN_MAP_TAIWAN_H__
3 #include <unordered_map>
15 typedef std::vector<MapItem> List_t;
18 typedef std::pair<short, short> DetEle_t;
19 typedef std::unordered_map<RocBoardChan_t, DetEle_t, RocBoardChanHash> Map_t;
26 void Add(
const short roc,
const short board,
const short chan,
const std::string det,
const short ele);
27 void Add(
const short roc,
const short board,
const short chan,
const std::string det_name,
const short det_id,
const short ele);
30 bool Find(
const short roc,
const short board,
const short chan,
short& det,
short& ele);
31 void Print(std::ostream& os);
void WriteDbTable(DbSvc &db)
void ReadDbTable(DbSvc &db)
int ReadFileCont(LineList &lines)
int WriteFileCont(std::ostream &os)
void Add(const short roc, const short board, const short chan, const std::string det, const short ele)
void Print(std::ostream &os)
bool Find(const short roc, const short board, const short chan, short &det, short &ele)
Standard interface with SQL database.
std::vector< std::string > LineList