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"
23 namespace Statistics {
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 ""; }
137 virtual bool acceptsGroups()
const override {
return true; }
154 SST_ELI_ELEMENT_VERSION(1,0,0),
155 "Output to text file"
170 bool outputsToFile()
override {
return true; }
176 bool supportsCompression()
override
188 std::string getUsageInfo()
override {
return "a text file"; }
193 std::string getStartOutputPrefix()
override {
return ""; }
200 bool getOutputTopHeaderDefault()
override {
return false; }
201 bool getOutputInlineHeaderDefault()
override {
return true; }
202 bool getOutputSimTimeDefault()
override {
return true; }
203 bool getOutputRankDefault()
override {
return true; }
205 std::string getDefaultFileName()
override {
return "./StatisticOutput.txt"; }
221 SST_ELI_ELEMENT_VERSION(1,0,0),
237 bool outputsToFile()
override {
return false; }
243 bool supportsCompression()
override {
return false; }
248 std::string getUsageInfo()
override {
return "the console"; }
253 std::string getStartOutputPrefix()
override {
return " "; }
260 bool getOutputTopHeaderDefault()
override {
return false; }
261 bool getOutputInlineHeaderDefault()
override {
return true; }
262 bool getOutputSimTimeDefault()
override {
return false; }
263 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:214
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:147
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