12#ifndef SST_CORE_STATAPI_STATOUTPUTTXT_H
13#define SST_CORE_STATAPI_STATOUTPUTTXT_H
15#include "sst/core/sst_types.h"
16#include "sst/core/statapi/statoutput.h"
74 void outputField(fieldHandle_t fieldHandle, int32_t data)
override;
75 void outputField(fieldHandle_t fieldHandle, uint32_t data)
override;
76 void outputField(fieldHandle_t fieldHandle, int64_t data)
override;
77 void outputField(fieldHandle_t fieldHandle, uint64_t data)
override;
78 void outputField(fieldHandle_t fieldHandle,
float data)
override;
79 void outputField(fieldHandle_t fieldHandle,
double data)
override;
84 bool m_outputTopHeader;
85 bool m_outputInlineHeader;
88 bool m_useCompression;
93 int print(
const char* fmt, ...);
100 std::string m_outputBuffer;
101 std::string m_FilePath;
106 virtual bool outputsToFile() = 0;
112 virtual bool supportsCompression() = 0;
117 virtual std::string getUsageInfo() = 0;
122 virtual std::string getStartOutputPrefix() = 0;
129 virtual bool getOutputTopHeaderDefault() = 0;
130 virtual bool getOutputInlineHeaderDefault() = 0;
131 virtual bool getOutputSimTimeDefault() = 0;
132 virtual bool getOutputRankDefault() = 0;
134 virtual std::string getDefaultFileName() {
return ""; }
151 SST_ELI_ELEMENT_VERSION(1,0,0),
152 "Output to text file"
167 bool outputsToFile()
override {
return true; }
173 bool supportsCompression()
override
185 std::string getUsageInfo()
override {
return "a text file"; }
190 std::string getStartOutputPrefix()
override {
return ""; }
197 bool getOutputTopHeaderDefault()
override {
return false; }
198 bool getOutputInlineHeaderDefault()
override {
return true; }
199 bool getOutputSimTimeDefault()
override {
return true; }
200 bool getOutputRankDefault()
override {
return true; }
202 std::string getDefaultFileName()
override {
return "./StatisticOutput.txt"; }
218 SST_ELI_ELEMENT_VERSION(1,0,0),
234 bool outputsToFile()
override {
return false; }
240 bool supportsCompression()
override {
return false; }
245 std::string getUsageInfo()
override {
return "the console"; }
250 std::string getStartOutputPrefix()
override {
return " "; }
257 bool getOutputTopHeaderDefault()
override {
return false; }
258 bool getOutputInlineHeaderDefault()
override {
return true; }
259 bool getOutputSimTimeDefault()
override {
return false; }
260 bool getOutputRankDefault()
override {
return false; }
Parameter store.
Definition: params.h:56
Forms the base class for statistics gathering within SST.
Definition: statbase.h:64
Definition: statoutput.h:143
The class for statistics output to the console.
Definition: statoutputtxt.h:211
SST_ELI_REGISTER_DERIVED(StatisticOutput, StatisticOutputConsole, "sst", "statoutputconsole", SST_ELI_ELEMENT_VERSION(1, 0, 0), "Output to console") StatisticOutputConsole(Params &outputParameters)
Construct a StatOutputTxt.
Definition: statoutputtxt.h:27
void printUsage() override
Print out usage for this Statistic Output.
Definition: statoutputtxt.cc:60
void endOfSimulation() override
Indicate to Statistic Output that simulation ended.
Definition: statoutputtxt.cc:142
void outputField(fieldHandle_t fieldHandle, int32_t data) override
Implementation functions for output.
Definition: statoutputtxt.cc:198
void implStartOutputEntries(StatisticBase *statistic) override
Implementation function for the start of output.
Definition: statoutputtxt.cc:150
void startOfSimulation() override
Indicate to Statistic Output that simulation started.
Definition: statoutputtxt.cc:80
void implStopOutputEntries() override
Implementation function for the end of output.
Definition: statoutputtxt.cc:190
bool checkOutputParameters() override
Perform a check of provided parameters.
Definition: statoutputtxt.cc:25
The class for statistics output to a text file.
Definition: statoutputtxt.h:144
SST_ELI_REGISTER_DERIVED(StatisticOutput, StatisticOutputTxt, "sst", "statoutputtxt", SST_ELI_ELEMENT_VERSION(1, 0, 0), "Output to text file") StatisticOutputTxt(Params &outputParameters)
Construct a StatOutputTxt.
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:50