Log message time source abstract base class. More...

#include <senf/Utils/Logger/TimeSource.hh>

Inheritance diagram for senf::log::TimeSource:

Public Member Functions

virtual ~TimeSource ()
 
virtual time_type operator() () const =0
 

Static Public Member Functions

static time_type now ()
 

Detailed Description

Log message time source abstract base class.

Instances derived from TimeSource provide the Logging library with the current date/time value. The operator() member must be implemented to return the current universal time (UTC).

A new TimeSource may be installed using senf::log::timeSource().

Definition at line 43 of file TimeSource.hh.

Constructor & Destructor Documentation

◆ ~TimeSource()

senf::log::TimeSource::~TimeSource ( )
virtual

Definition at line 30 of file TimeSource.cc.

Member Function Documentation

◆ now()

static time_type senf::log::TimeSource::now ( )
static

◆ operator()()

virtual time_type senf::log::TimeSource::operator() ( ) const
pure virtual

Implemented in senf::log::SystemTimeSource.


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