Go to the documentation of this file.00001 #ifndef loggingLogLevelDefinition_H
00002 #define loggingLogLevelDefinition_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef __cplusplus
00030 #error This is a C++ include file and cannot be used from plain C
00031 #endif
00032
00033 #include "logging_idlC.h"
00034 #include "loggingExport.h"
00035 #include <string>
00036 #include <ace/Log_Msg_Callback.h>
00037 #include <ace/Log_Priority.h>
00038
00039 class logging_EXPORT LogLevelDefinition {
00040 public:
00041 LogLevelDefinition(int val, std::string name);
00042 ~LogLevelDefinition(){}
00043 static LogLevelDefinition fromInteger(int val);
00044 static LogLevelDefinition fromName(std::string name);
00045 static ACE_Log_Priority getACELogPriority(int p);
00046 static int fromACEPriority(ACE_Log_Priority p);
00047 int getValue();
00048 std::string getName();
00049 private:
00050
00051 static ACE_Log_Priority m_LogEntryCast[];
00052 int m_value;
00053 std::string m_name;
00054 };
00055
00056 #endif