Commit ba13030d9c0aa38b027b31b53457876de641a172

Authored by Menouard AZIB
1 parent b98ec061

Add attribute 'writeDataFile' in PlotOutput.hh

src/ParamOutputImpl/Plot/PlotNode.cc
... ... @@ -48,6 +48,12 @@ void PlotNode::proceed(xmlNodePtr pNode,
48 48 plotOutput->setWriteContextFile(strcmp ((const char *) value, "true") == 0);
49 49 xmlFree(value);
50 50 }
  51 + //writeDataFile
  52 + if ((value = xmlGetProp(pNode, (const xmlChar *) "writeDataFile")))
  53 + {
  54 + plotOutput->setWriteDataFile(strcmp ((const char *) value, "true") == 0);
  55 + xmlFree(value);
  56 + }
51 57  
52 58 lContext.push<PlotOutput*>(plotOutput);
53 59 lContext.push<AMDA::Parameters::ParameterManager*>(lParameterManager);
... ...
src/ParamOutputImpl/Plot/PlotOutput.hh
... ... @@ -53,6 +53,14 @@ public:
53 53 }
54 54  
55 55 /**
  56 + * @brief Set option to write the data file
  57 + */
  58 + void setWriteDataFile(bool writeDataFile_)
  59 + {
  60 + writeDataFile = writeDataFile_;
  61 + }
  62 +
  63 + /**
56 64 * @brief Gets a list of plots on the same panel
57 65 */
58 66 std::vector<boost::shared_ptr<PanelPlotOutput>> getPlots(Panel* panel_);
... ... @@ -275,6 +283,12 @@ private:
275 283 bool _writeContextFile;
276 284  
277 285 /**
  286 + * @brief Flag to store the 'writeDataFile' value
  287 + *
  288 + */
  289 + bool wirteDataFile;
  290 +
  291 + /**
278 292 * @brief Context file writer
279 293 */
280 294 ContextFileWriter _contextWriter;
... ...