LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lsst.log::detail::LogFormatter Class Reference

#include <Log.h>

Public Member Functions

 LogFormatter ()
 
 ~LogFormatter ()
 
template<typename T >
boost::format & operator% (T fmt)
 

Private Member Functions

 LogFormatter (const LogFormatter &)
 
LogFormatteroperator= (const LogFormatter &)
 

Private Attributes

boost::format * _fmter
 

Detailed Description

This class is used by the LOGF_INFO and similar macros to support the boost::format-like operators in the message parameter.

Definition at line 452 of file Log.h.

Constructor & Destructor Documentation

lsst.log::detail::LogFormatter::LogFormatter ( )
inline

Definition at line 455 of file Log.h.

455 : _fmter(0) {}
boost::format * _fmter
Definition: Log.h:475
lsst.log::detail::LogFormatter::~LogFormatter ( )
inline

Definition at line 457 of file Log.h.

457  {
458  delete _fmter;
459  }
boost::format * _fmter
Definition: Log.h:475
lsst.log::detail::LogFormatter::LogFormatter ( const LogFormatter )
private

Member Function Documentation

template<typename T >
boost::format& lsst.log::detail::LogFormatter::operator% ( fmt)
inline

Converts a format string into a boost::format object.

Returns
a new boost::format object
Parameters
fmtformat string

Definition at line 467 of file Log.h.

467  {
468  // we do not delete old _fmtiter because this method
469  // will not be called more than once per instance
470  _fmter = new boost::format(fmt);
471  return *_fmter;
472  }
boost::format * _fmter
Definition: Log.h:475
LogFormatter& lsst.log::detail::LogFormatter::operator= ( const LogFormatter )
private

Member Data Documentation

boost::format* lsst.log::detail::LogFormatter::_fmter
private

Definition at line 475 of file Log.h.


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