BoilerPlate-LightweightLogging Service OMG Formal/03-11-03 |
00001 00030 #ifndef LEVELMAP_H 00031 #define LEVELMAP_H 00032 00033 00034 #include "BP_CosLw_Log.h" 00035 #include <map> 00036 00038 typedef std::map<CosLwLog::LogLevel, std::string> LevelStrMap; 00039 00041 typedef std::map<std::string, CosLwLog::LogLevel> StrLevelMap; 00042 00052 class LevelMap 00053 { 00054 00055 public: 00056 00061 ~LevelMap() {} 00062 00068 const std::string& translate(CosLwLog::LogLevel& c_level); 00069 00075 const CosLwLog::LogLevel& translate(std::string& str_level); 00076 00084 static LevelMap& instance(); 00085 00086 private: 00087 00092 LevelMap(); 00093 00095 LevelStrMap _level_str_map; 00097 StrLevelMap _str_level_map; 00098 }; 00099 00100 #endif
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:32:45 2004 for BoilerPlate CosLightweightLogging Service by 1.3.7 |