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 {
76 void outputField(fieldHandle_t fieldHandle, int32_t data)
override;
77 void outputField(fieldHandle_t fieldHandle, uint32_t data)
override;
78 void outputField(fieldHandle_t fieldHandle, int64_t data)
override;
79 void outputField(fieldHandle_t fieldHandle, uint64_t data)
override;
80 void outputField(fieldHandle_t fieldHandle,
float data)
override;
81 void outputField(fieldHandle_t fieldHandle,
double data)
override;
86 bool m_outputTopHeader;
87 bool m_outputInlineHeader;
90 bool m_useCompression;
95 int print(
const char* fmt, ...);
102 std::string m_outputBuffer;
103 std::string m_FilePath;
108 virtual bool outputsToFile() = 0;
114 virtual bool supportsCompression() = 0;
119 virtual std::string getUsageInfo() = 0;
124 virtual std::string getStartOutputPrefix() = 0;
131 virtual bool getOutputTopHeaderDefault() = 0;
132 virtual bool getOutputInlineHeaderDefault() = 0;
133 virtual bool getOutputSimTimeDefault() = 0;
134 virtual bool getOutputRankDefault() = 0;
136 virtual std::string getDefaultFileName() {
return ""; }
139 virtual bool acceptsGroups()
const override {
return true; }
156 SST_ELI_ELEMENT_VERSION(1,0,0),
157 "Output to text file" 176 bool outputsToFile()
override {
return true; }
182 bool supportsCompression()
override 194 std::string getUsageInfo()
override {
return "a text file"; }
199 std::string getStartOutputPrefix()
override {
return ""; }
206 bool getOutputTopHeaderDefault()
override {
return false; }
207 bool getOutputInlineHeaderDefault()
override {
return true; }
208 bool getOutputSimTimeDefault()
override {
return true; }
209 bool getOutputRankDefault()
override {
return true; }
211 std::string getDefaultFileName()
override {
return "./StatisticOutput.txt"; }
227 SST_ELI_ELEMENT_VERSION(1,0,0),
246 bool outputsToFile()
override {
return false; }
252 bool supportsCompression()
override {
return false; }
257 std::string getUsageInfo()
override {
return "the console"; }
262 std::string getStartOutputPrefix()
override {
return " "; }
269 bool getOutputTopHeaderDefault()
override {
return false; }
270 bool getOutputInlineHeaderDefault()
override {
return true; }
271 bool getOutputSimTimeDefault()
override {
return false; }
272 bool getOutputRankDefault()
override {
return false; }
278 #endif // SST_CORE_STATAPI_STATOUTPUTTXT_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:43
void implStopOutputEntries() override
Implementation function for the end of output.
Definition: statoutputtxt.cc:185
Definition: statoutputtxt.h:26
void implStartOutputEntries(StatisticBase *statistic) override
Implementation function for the start of output.
Definition: statoutputtxt.cc:149
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:50
SST_ELI_REGISTER_DERIVED(StatisticOutput, StatisticOutputConsole, "sst", "statoutputconsole", SST_ELI_ELEMENT_VERSION(1, 0, 0), "Output to console") StatisticOutputConsole(Params &outputParameters)
Construct a StatOutputTxt.
Forms the base class for statistics gathering within SST.
Definition: statbase.h:45
The class for statistics output to a text file.
Definition: statoutputtxt.h:148
void startOfSimulation() override
Indicate to Statistic Output that simulation started.
Definition: statoutputtxt.cc:79
virtual bool checkOutputParameters()=0
Have the Statistic Output check its parameters.
ImplementVirtualSerializable(SST::Statistics::StatisticOutputTextBase) protected void printUsage() override
Perform a check of provided parameters.
Definition: statoutputtxt.cc:59
Definition: statoutput.h:162
void outputField(fieldHandle_t fieldHandle, int32_t data) override
Implementation functions for output.
Definition: statoutputtxt.cc:193
Parameter store.
Definition: params.h:55
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.
void endOfSimulation() override
Indicate to Statistic Output that simulation ended.
Definition: statoutputtxt.cc:141
The class for statistics output to the console.
Definition: statoutputtxt.h:219