Fennel: /home/pub/open/dev/fennel/common/FileStatsTarget.h Source File (original) (raw)
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef Fennel_FileStatsTarget_Included
00025 #define Fennel_FileStatsTarget_Included
00026
00027 #include "fennel/common/StatsTarget.h"
00028
00029 #include
00030
00031 FENNEL_BEGIN_NAMESPACE
00032
00037 class FENNEL_COMMON_EXPORT FileStatsTarget : public StatsTarget
00038 {
00039 std::string filename;
00040 std::ofstream snapshotStream;
00041
00042 public:
00048 explicit FileStatsTarget(std::string filename);
00049
00053 std::string getFilename() const;
00054
00055
00056 virtual void beginSnapshot();
00057 virtual void endSnapshot();
00058 virtual void writeCounter(std::string name,int64_t value);
00059 };
00060
00061 FENNEL_END_NAMESPACE
00062
00063 #endif
00064
00065