Commit 7abf24a081e0decf4a12ac0f406330599d64ce72

Authored by Hacene SI HADJ MOHAND
1 parent c057fb1b

correcting bug

src/ExternLib/GetClbInfo/GetClbInfoProcess.cc
... ... @@ -54,9 +54,7 @@ TimeStamp GetClbInfoProcess::init() {
54 54 int i = 0;
55 55 unsigned int nbHeader = 0;
56 56 for (auto info : lInfoList){
57   - std::stringstream index;
58   - index << std::setw(3) << std::setfill('0') <<i;
59   - semiVariableTableElements.tabValues[index.str()] = *info.second;
  57 + semiVariableTableElements.tabValues[std::to_string(i)] = *info.second;
60 58 if (nbHeader < (*info.second).size())
61 59 nbHeader = (*info.second).size();
62 60 i++;
... ...
src/Info/ParamTable.cc
... ... @@ -211,8 +211,7 @@ namespace AMDA {
211 211 }
212 212 }
213 213  
214   - bool ParamTable::addSemiVariableTableInfo(ParameterManager* parameterManager, int dim, std::string paramId, std::string tabKey, std::vector<std::pair<std::string, std::string>>&infoMap) {
215   - bool isAddedTable = false;
  214 + void ParamTable::addSemiVariableTableInfo(ParameterManager* parameterManager, int dim, std::string paramId, std::string tabKey, std::vector<std::pair<std::string, std::string>>&infoMap) {
216 215 AMDA::Parameters::ParameterSPtr pParam = parameterManager->getParameter(paramId);
217 216 Process* lProcess = dynamic_cast<Process*> (pParam->getDataWriterTemplate().get());
218 217 if (lProcess != NULL) {
... ... @@ -220,7 +219,6 @@ namespace AMDA {
220 219 std::list<std::string>::iterator it;
221 220 it = std::find(_printedTables.begin(), _printedTables.end(), paramId);
222 221 if (!semiVariableTable.tabHeader.empty() && it == _printedTables.end()) {
223   - isAddedTable = true;
224 222 std::stringstream head;
225 223 head.str("");
226 224 head << "mode" << " ";
... ... @@ -295,7 +293,7 @@ namespace AMDA {
295 293 const std::vector<std::string>& paramLinkedParams = paramInfo->getLinkedParamList();
296 294 for (auto pId : paramLinkedParams)
297 295 addSemiVariableTableInfo(parameterManager, dim, pId, tabKey, infoMap);
298   - return isAddedTable;
  296 + return;
299 297 }
300 298  
301 299 void ParamTable::addVariableTableInfo(ParameterManager * parameterManager, int dim, std::vector<std::pair<std::string, std::string>>&tableInfo) {
... ...
src/Info/ParamTable.hh
... ... @@ -80,7 +80,7 @@ namespace Info {
80 80  
81 81 void addTableInfo(ParameterManager *parameterManager, int dim, std::vector<std::pair<std::string,std::string>>& infoMap);
82 82  
83   - bool addSemiVariableTableInfo(ParameterManager *parameterManager, int dim, std::string paramId, std::string key, std::vector<std::pair<std::string,std::string>>& infoMap);
  83 + void addSemiVariableTableInfo(ParameterManager *parameterManager, int dim, std::string paramId, std::string key, std::vector<std::pair<std::string,std::string>>& infoMap);
84 84  
85 85 void addRelatedParams(ParameterManager *parameterManager, std::string paramId, std::list<std::string>relatedParams);
86 86  
... ...