1 #ifndef _ots_ROCDACs_h_
2 #define _ots_ROCDACs_h_
10 typedef std::map<std::string, std::pair<unsigned int, unsigned int> > DACList;
19 void clear(
void){theDACList_.clear();}
24 void setDAC(std::string name,
unsigned int address,
unsigned int value) {theDACList_[name] = std::pair<unsigned int, unsigned int>(address, value);}
27 const std::pair<unsigned int, unsigned int>& getDAC (std::string name)
const {
return theDACList_.find(name)->second;}
28 unsigned int getDACAddress (std::string name)
const {
return theDACList_.find(name)->second.first;}
29 unsigned int getDACValue (std::string name)
const {
return theDACList_.find(name)->second.second;}
30 const DACList getDACList (
void)
const {
return theDACList_;}