12 #ifndef _H_SST_CORE_STATISTICS_OUTPUTHDF5
13 #define _H_SST_CORE_STATISTICS_OUTPUTHDF5
15 #include "sst/core/sst_types.h"
17 #include <sst/core/statapi/statoutput.h>
24 namespace Statistics {
49 void implRegisteredField(fieldHandle_t fieldHandle);
50 void implStopRegisterFields();
104 class StatisticInfo {
106 std::vector<fieldHandle_t> indexMap;
107 std::vector<StatData_u> currentData;
108 std::vector<fieldType_t> typeList;
109 std::vector<std::string> fieldNames;
111 H5::DataSet *dataset;
112 H5::CompType *memType;
118 StatisticInfo(
StatisticBase *stat, H5::H5File *file) : statistic(stat), file(file), nEntries(0) { }
120 if ( dataset )
delete dataset;
121 if ( memType )
delete memType;
123 void registerSimTime();
125 void finalizeRegistration();
127 void startNewEntry();
128 StatData_u& getFieldLoc(fieldHandle_t fieldHandle);
134 StatisticInfo* m_currentStatistic;
135 std::map<StatisticBase*, StatisticInfo*> m_statistics;
void implStopOutputEntries()
Implementation function for the end of output.
Definition: statoutputhdf5.cc:110
void endOfSimulation()
Indicate to Statistic Output that simulation ended.
Definition: statoutputhdf5.cc:96
The class for representing Statistic Output Fields
Definition: statfieldinfo.h:32
bool checkOutputParameters()
Perform a check of provided parameters.
Definition: statoutputhdf5.cc:30
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:47
fieldHandle_t registerField(const char *fieldName)
Register a field to be output (templated function)
Definition: statoutput.h:84
Forms the base class for statistics gathering within SST.
Definition: statbase.h:36
void printUsage()
Print out usage for this Statistic Output.
Definition: statoutputhdf5.cc:58
void implOutputField(fieldHandle_t fieldHandle, int32_t data)
Implementation functions for output.
Definition: statoutputhdf5.cc:117
The class for statistics output to a comma separated file.
Definition: statoutputhdf5.h:31
Parameter store.
Definition: params.h:44
void startOfSimulation()
Indicate to Statistic Output that simulation started.
Definition: statoutputhdf5.cc:91
void implStartOutputEntries(StatisticBase *statistic)
Implementation function for the start of output.
Definition: statoutputhdf5.cc:104