25int main(
int argc,
char **argv)
40 JParser<> zap(
"Auxiliary program to print firmware vesion.");
52 catch(
const exception &error) {
60 catch(
const exception& error) {
78 catch(
const exception& error) {
79 FATAL(
"Detector " << detid <<
" - " << error.what() <<
endl);
83 FATAL(
"Detector " << detid <<
" - " <<
" no data." <<
endl);
91 JSelector selection(&JDatalogNumbers::PARAMETER_NAME,
"BUILD*");
99 const int value = (
int) parameters.DATA_VALUE;
103 const size_t ls[] = {
104 parameters.PARAMETER_NAME.find(
'['),
105 parameters.PARAMETER_NAME.find(
']')
110 string& version = zmap[parameters.SOURCE_NAME];
116 if (version.size() <= index) {
117 version.append(index - version.size() + 1,
' ');
120 DEBUG(parameters.PARAMETER_NAME <<
' ' <<
ls[0] <<
' ' <<
ls[1] <<
' ' << index <<
' ' << value <<
endl);
122 version[index] = (
char) value;
129 catch(
const exception& error) {
135 bool operator()(
const JCLBMap& first,
const JCLBMap& second)
const
147 for (
const auto& i :
clbmap) {
148 cout <<
"Firmware: " <<
FILL(4,
'0') << i.DUID <<
'.' <<
FILL(2,
'0') << i.FLOORID <<
" " <<
setw(24) << left << i.UPI <<
" \"" << zmap[i.UPI.toString()] <<
"\"" << right <<
endl;