00001 #ifndef SCTCONF_LOG_H 00002 #define SCTCONF_LOG_H 00003 00004 #include <fstream> 00005 #include <string> 00006 00011 class Log : public std::ofstream { 00012 public: 00014 Log(); 00016 Log(std::string fname); 00018 Log(std::string fname, int instance); 00020 ~Log(); 00021 00022 private: 00023 static std::string getDefaultFileName(); 00024 void printHeader(); 00025 void printTrailer(); 00026 }; 00027 00028 #endif