1 #ifndef QNANO_NEW_DEBUG_LOGGER_DEFINED_H     2 #define QNANO_NEW_DEBUG_LOGGER_DEFINED_H     3 #include "tools/Reader.h"     4 #include "tools/Has_Print.h"    10   std::string debug_fname;
    13   void setup(
const std::string &fname){
    15     use_debug=(fname!=
"");
    21       std::ofstream ofs(debug_fname.c_str(), std::ios::app);  
    26   Debug_Logger& operator<<(std::ostream&(*x)(std::ostream&)){
    28       std::ofstream ofs(debug_fname.c_str(), std::ios::app);
    35       std::ofstream ofs(debug_fname.c_str(), std::ios::app);
    41     use_debug=other.use_debug;
    42     debug_fname=other.debug_fname;   
 Interface for classes that have a "print" function. 
Definition: Has_Print.h:7
 
Definition: Debug_Logger.h:7