Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

LevelMap Class Reference
[LWLogging Service]

#include <LevelMap.h>

List of all members.


Detailed Description

Contains mappings of LogLevels to strings and the inverse.

Note:
The LevelMap should not be inherited.
Author:
Author
knoxy
Version:
Revision
1.3
Date:
Date
2004/10/24 01:35:54


Public Member Functions

 ~LevelMap ()
const std::string & translate (CosLwLog::LogLevel &c_level)
const CosLwLog::LogLeveltranslate (std::string &str_level)

Static Public Member Functions

LevelMapinstance ()


Constructor & Destructor Documentation

LevelMap::~LevelMap  )  [inline]
 

dtor

Currently does nothing. The LevelMap should not be inherited


Member Function Documentation

LevelMap& LevelMap::instance  )  [static]
 

The only way to access the LevelMap

There is no reason to have multiple copies of the LevelMap. The default ctor is private.

Returns:
Reference to a local static instance of LevelMap

const CosLwLog::LogLevel& LevelMap::translate std::string &  str_level  ) 
 

Translate a string representation to a LogLevel

Parameters:
str_level - The String representation of a LogLeve
Returns:
The LogLevel equivalent of the string representation

const std::string& LevelMap::translate CosLwLog::LogLevel c_level  ) 
 

Translate a LogLevel to a string representation

Parameters:
c_level - The CORBA LogLevel to translate
Returns:
The string representation


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