Commit e8ddc16c2ca9d89f5ab0090630b2a797510eee23

Authored by Hacene SI HADJ MOHAND
1 parent 9d8ac4bd

adding GetClbInfoByIndex

src/ExternLib/GetClbInfoByIndex/GetClbInfoByIndexProcess.cc
... ... @@ -49,6 +49,22 @@ TimeStamp GetClbInfoByIndexProcess::init() {
49 49 dynamic_cast<Base::GetClbInfoByIndex*>(_operation)->init(*_parameterInput,_attributList);
50 50 _paramData = ParamDataSPtr(_operation->getParamOutput());
51 51 _paramData->setMinSampling(_paramInput->getMinSampling());
  52 +
  53 + AMDA::Parameters::SemiVariableTable semiVariableTableElements;
  54 + int i = 0;
  55 + unsigned int nbHeader = 0;
  56 + for (auto info : lInfoList){
  57 + semiVariableTableElements.tabValues[std::to_string(i)] = *info.second;
  58 + if (nbHeader < (*info.second).size())
  59 + nbHeader = (*info.second).size();
  60 + i++;
  61 + }
  62 + for (unsigned int i = 0 ; i < nbHeader; i++)
  63 + semiVariableTableElements.tabHeader.push_back("Energy[" + std::to_string(i)+"]");
  64 + this->setSemiVariableTable(semiVariableTableElements);
  65 + if (!semiVariableTableElements.tabValues.empty())
  66 + _parameterInput->setIsTableIndexParam(true);
  67 +
52 68 return timeStamp;
53 69 }
54 70  
... ...