Revision cfdc7053f2bba3965c665328fc1d014f44cab16b authored by Lonca Emmanuel on 17 March 2021, 12:16:06 UTC, committed by Lonca Emmanuel on 17 March 2021, 12:16:06 UTC
1 parent 76983f8
LogStatMap.cc
#include "LogStatMap.h"
using namespace CoQuiAAS;
LogStatMap::LogStatMap(FILE *outFile){
outfile = outFile;
}
void LogStatMap::setStat(std::string name, std::string value) {
if(value.empty()) { fprintf(outfile, "c %s\n", value.c_str()); return; }
fprintf(outfile, "c %s : %s\n", name.c_str(), value.c_str());
}
void LogStatMap::setStat(std::string name, int value) {
fprintf(outfile, "c %s : %d\n", name.c_str(), value);
}
void LogStatMap::setStat(std::string name, double value) {
fprintf(outfile, "c %s : %.3f\n", name.c_str(), value);
}
void LogStatMap::incCounterStat(std::string name, int value) {
// must NOT be used in this class
}
void LogStatMap::printStats(FILE *outputFile) {}
LogStatMap::~LogStatMap() {}
Computing file changes ...