![]() |
Rosetta Utilities
2014.16.56682
|
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... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
Private Attributes | |
| Tracer & | tracer_ |
| 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 |
Small inner class acting as a proxy to an object that hold it.
Inner Classes
|
inline |
|
virtual |
|
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 |
return visibility of TracerProxy object.
References basic::Tracer::calculate_visibility(), channel_, basic::Tracer::muted_by_default_, priority_, tracer_, visibility_calculated_, and visible_.
|
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().
|
mutableprivate |
is channel visibility already calculated?
Referenced by visible().
|
mutableprivate |
is channel visible?
Referenced by visible().
1.8.7