21#ifndef __SOLVER_VARIABLE_SURVEY_RESULTS_SURVEY_RESULTS_H__
22#define __SOLVER_VARIABLE_SURVEY_RESULTS_SURVEY_RESULTS_H__
25#include <yuni/core/string.h>
27#include <antares/study/study.h>
28#include <antares/study/variable-print-info.h>
29#include <antares/writer/i_writer.h>
30#include "antares/antares/constants.h"
32#include "../categories.h"
35namespace Antares::Solver::Variable
70 void saveToFile(
int dataLevel,
int fileLevel,
int precisionLevel);
81 void resetValuesAtLine(uint);
88 void exportDigestMatrix(
const char* title, std::string& buffer);
96 std::string variableUnit;
116 bool** digestNonApplicableStatus;
139 template<
class StringT,
class ConvertT,
class PrecisionT>
140 void AppendDoubleValue(uint& error,
143 ConvertT& conversionBuffer,
145 const bool isNotApplicable);
147 void writeDateToFileDescriptor(uint row,
int precisionLevel);
Class utility for building CSV results files.
Definition surveyresults.h:41
bool * nonApplicableStatus
Non applicable status for each column (in the printf format)
Definition surveyresults.h:113
uint maxVariables
The total number of variables.
Definition surveyresults.h:119
Yuni::CString< 10, false > PrecisionType
Precision.
Definition surveyresults.h:44
double ** values
Matrix where to store all results.
Definition surveyresults.h:99
bool * isPrinted
Same thing for print status (do we print the current output variable ?)
Definition surveyresults.h:134
PrecisionType * precision
Precision to for each column (in the printf format)
Definition surveyresults.h:110
Yuni::CString< 128, false > CaptionType
Caption.
Definition surveyresults.h:46
CaptionType * captions[captionCount]
Array to store all variable names.
Definition surveyresults.h:107
CaptionType variableCaption
Caption for the current variable.
Definition surveyresults.h:95
~SurveyResults()
Destructor.
Definition surveyresults.cpp:569
void exportGridInfos()
Export informations about the current study.
Definition surveyresults.cpp:814
SurveyResults(const Data::Study &s, const Yuni::String &o, IResultWriter &writer)
Default constructor.
Definition surveyresults.cpp:512
Solver::Variable::Private::SurveyResultsData data
Data (not related to the template parameter)
Definition surveyresults.h:92
bool * isCurrentVarNA
Definition surveyresults.h:132
bool yearByYearResults
Flag to known if we are in the year-by-year mode.
Definition surveyresults.h:122
void exportDigestAllYears(std::string &buffer)
Export the digest file.
Definition surveyresults.cpp:601
void saveToFile(int dataLevel, int fileLevel, int precisionLevel)
Write the data into a file.
Definition surveyresults.cpp:693