Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
Arc::LogDestination Class Reference

A base class for log destinations. More...

#include <Logger.h>

Inheritance diagram for Arc::LogDestination:
Inheritance graph
[legend]
Collaboration diagram for Arc::LogDestination:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void log (const LogMessage &message)=0
 Logs a LogMessage to this LogDestination.
virtual ~LogDestination ()
void setFormat (const LogFormat &newformat)

Protected Member Functions

 LogDestination ()
 Default constructor.
 LogDestination (const std::string &locale)
 Constructor with specific locale.

Protected Attributes

std::string locale
LogFormat format

Private Member Functions

 LogDestination (const LogDestination &unique)
 Private copy constructor.
void operator= (const LogDestination &unique)
 Private assignment operator.

Detailed Description

A base class for log destinations.

This class defines an interface for LogDestinations. LogDestination objects will typically contain synchronization mechanisms and should therefore never be copied.

Definition at line 183 of file Logger.h.


Constructor & Destructor Documentation

virtual Arc::LogDestination::~LogDestination ( ) [inline, virtual]

Definition at line 189 of file Logger.h.

{}

Default constructor.

This destination will use the default locale.

Definition at line 180 of file Logger.cpp.

Arc::LogDestination::LogDestination ( const std::string &  locale) [protected]

Constructor with specific locale.

This destination will use the specified locale.

Definition at line 183 of file Logger.cpp.

Arc::LogDestination::LogDestination ( const LogDestination unique) [private]

Private copy constructor.

LogDestinations should never be copied, therefore the copy constructor is private.

Definition at line 187 of file Logger.cpp.

                                                      {
    // Executing this code should be impossible!
    exit(EXIT_FAILURE);
  }

Member Function Documentation

virtual void Arc::LogDestination::log ( const LogMessage message) [pure virtual]

Logs a LogMessage to this LogDestination.

Implemented in Arc::LogFile, and Arc::LogStream.

void Arc::LogDestination::operator= ( const LogDestination unique) [private]

Private assignment operator.

LogDestinations should never be assigned, therefore the assignment operator is private.

Definition at line 192 of file Logger.cpp.

                                                      {
    // Executing this code should be impossible!
    exit(EXIT_FAILURE);
  }
void Arc::LogDestination::setFormat ( const LogFormat newformat)

Definition at line 197 of file Logger.cpp.

                                                           {
    format = newformat;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 222 of file Logger.h.

std::string Arc::LogDestination::locale [protected]

Definition at line 221 of file Logger.h.


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