1 #ifndef __NOMAD400_OUTPUTQUEUE__
2 #define __NOMAD400_OUTPUTQUEUE__
13 #include "../Param/DisplayParameters.hpp"
14 #include "../Output/OutputInfo.hpp"
15 #include "../Output/StatsInfo.hpp"
17 #include "../nomad_nsbegin.hpp"
34 void initParameters(
const std::shared_ptr<DisplayParameters>& params);
43 void add(
const std::string& s,
45 static void Add(
const std::string& s,
108 static omp_lock_t _s_queue_lock;
152 #include "../nomad_nsend.hpp"
154 #endif // __NOMAD400_OUTPUTQUEUE__
std::vector< OutputInfo > _queue
void initParameters(const std::shared_ptr< DisplayParameters > ¶ms)
void setMaxStepLevel(const size_t maxStepLevel)
static void Add(const std::string &s, OutputLevel outputLevel=OutputLevel::LEVEL_INFO)
void setStatsFileFormat(const DisplayStatsTypeList &statsFileFormat)
void flushStatsToStdout(const StatsInfo *statsInfo)
void flushStatsToStatsFile(const StatsInfo *statsInfo)
const std::string _blockEnd
std::shared_ptr< DisplayParameters > _params
int getDisplayDegree() const
void setDisplayDegree(const int displayDegree)
const ArrayOfDouble & getSolFormat() const
Class for the representation of an array of n values.
void setStatsFileName(const std::string &statsFile)
static void Add(const StatsInfo &statsInfo)
Class for the representation of an array of n strings.
static std::unique_ptr< OutputQueue > & getInstance()
void flushBlock(const OutputInfo &outputInfo)
Information for stats format (parameters DISPLAY_STATS and STATS_FILE).
DisplayStatsTypeList _statsFileFormat
const std::string _blockStart
std::ofstream _statsStream
void add(OutputInfo outputInfo)
OutputLevel _maxOutputLevel
const DisplayStatsTypeList & getStatsFileFormat() const
static std::unique_ptr< OutputQueue > _single
The singleton.
static void Add(OutputInfo outputInfo)
size_t getMaxStepLevel() const
const std::string & getStatsFileName() const