diff options
Diffstat (limited to 'src/system-stats/common.h')
-rw-r--r-- | src/system-stats/common.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/system-stats/common.h b/src/system-stats/common.h new file mode 100644 index 0000000..b3984fb --- /dev/null +++ b/src/system-stats/common.h @@ -0,0 +1,25 @@ +#ifndef __COMMON_H__ +#define __COMMON_H__ +#include <fstream> +#include <functional> +#include <filesystem> + +#define APP_VERSION "2.2" +#define APP_NAME "stat-monitor" + +using refstream = std::reference_wrapper<std::ostream>; + +class LogFile { + private: + std::filesystem::path base; + std::string date_ = ""; + std::ofstream stream; + const std::string date(); + bool stdout = false; + public: + LogFile(); + void change(refstream& fstr); +}; + +std::string dumpReport(); +#endif /* __COMMON_H__ */ |