INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
trivialtracer.h00001 /* 00002 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics 00003 * http://gearbox.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This distribution is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef GBXUTILACFR_TRIVIAL_TRACER_H 00012 #define GBXUTILACFR_TRIVIAL_TRACER_H 00013 00014 #include <gbxutilacfr/tracer.h> 00015 00016 namespace gbxutilacfr { 00017 00023 class TrivialTracer : public Tracer 00024 { 00025 public: 00026 TrivialTracer( bool debug=false, bool info=true, bool warn=true, bool error=true ); 00027 00028 virtual void print( const std::string &message ); 00029 virtual void info( const std::string &message, int level=1 ); 00030 virtual void warning( const std::string &message, int level=1 ); 00031 virtual void error( const std::string &message, int level=1 ); 00032 virtual void debug( const std::string &message, int level=1 ); 00033 virtual int verbosity( TraceType traceType, DestinationType destType ) const; 00034 00035 private: 00036 bool debug_; 00037 bool info_; 00038 bool warn_; 00039 bool error_; 00040 }; 00041 00042 } // namespace 00043 00044 #endif |