11 #include "otsdaq-core/ConfigurationDataFormats/ViewRegisterInfo.h"
17 ViewRegisterInfo::ViewRegisterInfo(std::string typeName, std::string registerName, std::string baseAddress,
int size, std::string access)
19 dataTable_.push_back(typeName),
20 dataTable_.push_back(registerName),
21 dataTable_.push_back(baseAddress),
22 dataTable_.push_back(std::to_string(size)),
23 dataTable_.push_back(access);
27 ViewRegisterInfo::~ViewRegisterInfo(
void)
32 const std::string& ViewRegisterInfo::getTypeName(
void)
const
34 return dataTable_.at(typeName_);
38 const std::string& ViewRegisterInfo::getRegisterName(
void)
const
40 return dataTable_.at(registerName_);
43 const std::string& ViewRegisterInfo::getBaseAddress(
void)
const
45 return dataTable_.at(baseAddress_);
48 const int ViewRegisterInfo::getSize(
void)
const
50 return std::stoi(dataTable_.at(size_));
53 const std::string& ViewRegisterInfo::getAccess(
void)
const
55 return dataTable_.at(access_);
58 const int ViewRegisterInfo::getNumberOfColumns(
void)
const{
59 return dataTable_.size();