Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Enumerations | Functions
Tracer.hh File Reference

Tracer IO system. More...

#include <cassert>
#include <memory>
#include <sstream>
#include <vector>
#include <utility/pointer/ReferenceCount.hh>
#include <utility/vector1.hh>
#include <utility/thread/backwards_thread_local.hh>
#include <utility/CSI_Sequence.fwd.hh>

Classes

class  basic::basic_otstream< CharT, Traits >
 Base class for Tracer, TracerProxy and UTracer objects. More...
 
class  basic::basic_otstream< CharT, Traits >::basic_tstringbuf< _CharT, _Traits >
 Inner class declaration. More...
 
struct  basic::TracerOptions
 data structure to store all system level options for Tracer system. More...
 
class  basic::Tracer
 Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for all your regular io. Channel argument must be related to the location of the source file. For example if you create Tracer object in src/basic/scoring/myfile.cc, then channel must be something like 'src.basic.scoring.myfile'. More...
 
class  basic::Tracer::TracerProxy
 Small inner class acting as a proxy to an object that hold it. More...
 
class  basic::TracerManager
 Simple singleton class to hold the all_tracers_ array, which otherwise suffers from funky double-construction problems when declared as a static data member of Tracer. More...
 
class  basic::PyTracer
 Special PyRosetta friendly Tracer like buffer. Use it to capture Tracer output with set_ios_hook. More...
 

Namespaces

 basic
 Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input.
 

Typedefs

typedef basic_otstream< char > basic::otstream
 
typedef
utility::pointer::shared_ptr
< otstream > 
basic::otstreamOP
 

Enumerations

enum  basic::TracerPriority {
  basic::t_fatal = 0, basic::t_error = 100, basic::t_warning = 200, basic::t_info = 300,
  basic::t_debug = 400, basic::t_trace = 500
}
 Priority levels for T() and Tracer object, modeled on the log4j project and its offspring. Priorities in Tracer are still ints so users can pass other arbitrary integer values (for now). More...
 

Functions

Tracer & basic::T (std::string const &channel, TracerPriority priority=t_info)
 T is special function for assign tracer property on the static object. More...
 
Tracer & basic::Error (TracerPriority priority=t_error)
 Predefined Error tracer. More...
 
Tracer & basic::Warning (TracerPriority priority=t_warning)
 Predefined Warning tracer. More...
 

Detailed Description

Tracer IO system.

Author
Sergey Lyskov