Home Libraries Author Links

stm::basic_logger< StringT, stdIndent, lineLength, lockingPolicy >::locker Struct Reference
[LoggerAids: Formatted Logging Aids]

List of all members.


Detailed Description

template<class StringT, word stdIndent = 4, word lineLength = 79, word lockingPolicy = logger_base::NoLocking>
struct stm::basic_logger< StringT, stdIndent, lineLength, lockingPolicy >::locker

Scoped locking for output streams.

For locking policy logger_base::NoLocking an object instantiation causes a std::logic_error exception to be thrown. For locking policies logger_base::ProcessLocking and logger_base::sytemLocking locker is derived from stm::scoped_lock and stm::system_scoped_lock, respectively.

Definition at line 262 of file loggeraids.hpp.


Public Types

typedef basic_logger< StringT,
stdIndent, lineLength,
lockingPolicy > 
logger_type
 The type of the object to be locked.

Public Member Functions

 locker (const logger_type &logger)
 Construct a scoped lock for logger.
 ~locker ()
 Destructor.

Member Typedef Documentation

template<class StringT, word stdIndent = 4, word lineLength = 79, word lockingPolicy = logger_base::NoLocking>
typedef basic_logger< StringT, stdIndent, lineLength, lockingPolicy > stm::basic_logger< StringT, stdIndent, lineLength, lockingPolicy >::locker::logger_type

The type of the object to be locked.

Definition at line 271 of file loggeraids.hpp.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).