Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | List of all members
services::basic_logger< Service > Class Template Reference

#include <basic_logger.hpp>

Inheritance diagram for services::basic_logger< Service >:

Public Types

typedef Service service_type
 The type of the service that will be used to provide timer operations. More...
 
typedef service_type::impl_type impl_type
 The native implementation type of the timer. More...
 

Public Member Functions

 basic_logger (asio::io_service &io_service, const std::string &identifier)
 Constructor. More...
 
 ~basic_logger ()
 Destructor. More...
 
asio::io_serviceget_io_service ()
 Get the io_service associated with the object. More...
 
void use_file (const std::string &file)
 Set the output file for all logger instances. More...
 
void log (const std::string &message)
 Log a message. More...
 

Detailed Description

template<typename Service>
class services::basic_logger< Service >

Class to provide simple logging functionality. Use the services::logger typedef.

Definition at line 23 of file basic_logger.hpp.

Member Typedef Documentation

template<typename Service>
typedef service_type::impl_type services::basic_logger< Service >::impl_type

The native implementation type of the timer.

Definition at line 31 of file basic_logger.hpp.

template<typename Service>
typedef Service services::basic_logger< Service >::service_type

The type of the service that will be used to provide timer operations.

Definition at line 28 of file basic_logger.hpp.

Constructor & Destructor Documentation

template<typename Service>
services::basic_logger< Service >::basic_logger ( asio::io_service io_service,
const std::string &  identifier 
)
inlineexplicit

Constructor.

This constructor creates a logger.

Parameters
io_serviceThe io_service object used to locate the logger service.
identifierAn identifier for this logger.

Definition at line 41 of file basic_logger.hpp.

template<typename Service>
services::basic_logger< Service >::~basic_logger ( )
inline

Destructor.

Definition at line 50 of file basic_logger.hpp.

Member Function Documentation

template<typename Service>
asio::io_service& services::basic_logger< Service >::get_io_service ( )
inline

Get the io_service associated with the object.

Definition at line 56 of file basic_logger.hpp.

template<typename Service>
void services::basic_logger< Service >::log ( const std::string &  message)
inline

Log a message.

Definition at line 68 of file basic_logger.hpp.

template<typename Service>
void services::basic_logger< Service >::use_file ( const std::string &  file)
inline

Set the output file for all logger instances.

Definition at line 62 of file basic_logger.hpp.


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