Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
basic::TracerImpl::TracerProxyImpl Class Reference

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

#include <TracerImpl.hh>

Inheritance diagram for basic::TracerImpl::TracerProxyImpl:
Inheritance graph
[legend]

Public Member Functions

 TracerProxyImpl (TracerImpl &tracer, int priority, std::string channel)
 
 ~TracerProxyImpl () override
 
bool visible ()
 Is the output from this TracerProxy visible? More...
 
void calculate_visibility ()
 determine the visibility of the proxy. More...
 
- Public Member Functions inherited from basic::basic_otstream< CharT, Traits >
 basic_otstream ()
 
 ~basic_otstream () override
 
bool is_flushed () const
 Return true if inner string buffer is empty. More...
 

Protected Member Functions

void t_flush (std::string const &) override
 Flush inner buffer: send it to bound Tracer object, and clean it. More...
 

Private Attributes

TracerImpltracer_
 
int priority_ = t_info
 
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_ = true
 is channel visible? More...
 

Detailed Description

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

Inner Classes

Constructor & Destructor Documentation

basic::TracerImpl::TracerProxyImpl::TracerProxyImpl ( TracerImpl tracer,
int  priority,
std::string  channel 
)
basic::TracerImpl::TracerProxyImpl::~TracerProxyImpl ( )
override

Member Function Documentation

void basic::TracerImpl::TracerProxyImpl::calculate_visibility ( )
void basic::TracerImpl::TracerProxyImpl::t_flush ( std::string const &  s)
overrideprotectedvirtual

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

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

References test.T500_Packing::pr, basic::TracerImpl::priority_, and basic::options::OptionKeys::in::file::s.

bool basic::TracerImpl::TracerProxyImpl::visible ( )
inline

Is the output from this TracerProxy visible?

References visible_.

Referenced by basic::Tracer::TracerProxy::visible().

Member Data Documentation

std::string basic::TracerImpl::TracerProxyImpl::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.

int basic::TracerImpl::TracerProxyImpl::priority_ = t_info
private
TracerImpl& basic::TracerImpl::TracerProxyImpl::tracer_
private
bool basic::TracerImpl::TracerProxyImpl::visible_ = true
private

is channel visible?

Referenced by visible().


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