Rosetta Utilities  2014.35
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
basic::Tracer::TracerProxy Class Reference

Small inner class acting as a proxy to an object that hold it. More...

#include <Tracer.hh>

Public Member Functions

 TracerProxy (Tracer &tracer, int priority, std::string const &channel)
 
virtual ~TracerProxy ()
 
bool visible () const
 return visibility of TracerProxy object. More...
 
- Public Member Functions inherited from basic::basic_otstream< CharT, Traits >
 basic_otstream ()
 
virtual ~basic_otstream ()
 
bool is_flushed () const
 Return true if inner string buffer is empty. More...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Protected Member Functions

virtual void t_flush (std::string const &)
 Flush inner buffer: send it to bound Tracer object, and clean it. More...
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Private Attributes

Tracertracer_
 
int priority_
 
std::string channel_
 We need to copy channel name here so we can generate appropriate 'warning' message in destructor, where tracer_ object is no longer valid. More...
 
bool visible_
 is channel visible? More...
 
bool visibility_calculated_
 is channel visibility already calculated? More...
 

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 

Detailed Description

Small inner class acting as a proxy to an object that hold it.

Inner Classes

Constructor & Destructor Documentation

basic::Tracer::TracerProxy::TracerProxy ( Tracer tracer,
int  priority,
std::string const &  channel 
)
inline
basic::Tracer::TracerProxy::~TracerProxy ( )
virtual

Member Function Documentation

void basic::Tracer::TracerProxy::t_flush ( std::string const &  s)
protectedvirtual

Flush inner buffer: send it to bound Tracer object, and clean it.

Reimplemented from basic::basic_otstream< CharT, Traits >.

References basic::Tracer::priority_, and basic::options::OptionKeys::in::file::s.

bool basic::Tracer::TracerProxy::visible ( ) const

Member Data Documentation

std::string basic::Tracer::TracerProxy::channel_
private

We need to copy channel name here so we can generate appropriate 'warning' message in destructor, where tracer_ object is no longer valid.

Referenced by visible().

int basic::Tracer::TracerProxy::priority_
private

Referenced by visible().

Tracer& basic::Tracer::TracerProxy::tracer_
private

Referenced by visible().

bool basic::Tracer::TracerProxy::visibility_calculated_
mutableprivate

is channel visibility already calculated?

Referenced by visible().

bool basic::Tracer::TracerProxy::visible_
mutableprivate

is channel visible?

Referenced by visible().


The documentation for this class was generated from the following files: