00001
00002
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 #ifndef CEYLAN_LOGGABLE_H_
00028 #define CEYLAN_LOGGABLE_H_
00029
00030
00031 #include "CeylanLog.h"
00032 #include "CeylanLogSource.h"
00033
00034 #include <string>
00035
00036
00037
00038 namespace Ceylan
00039 {
00040
00041
00042 namespace Log
00043 {
00044
00045
00046
00056 class CEYLAN_DLL Loggable : public LogSource
00057 {
00058
00059
00060 public:
00061
00062
00076 explicit Loggable( const std::string & name ) ;
00077
00078
00079
00081 virtual ~Loggable() throw() ;
00082
00083
00084
00086 void setChannelName( const std::string & channelName ) ;
00087
00088
00089
00090
00091
00092
00093
00100 static bool IsALoggableChannelName(
00101 const std::string & channelName ) ;
00102
00103
00104
00111 static const std::string GetEmbeddedChannelName(
00112 const std::string & fullChannelName ) ;
00113
00114
00115
00122 static const std::string ProtocolName ;
00123
00124
00125
00126 private:
00127
00128
00137 Loggable( const Loggable & source ) ;
00138
00139
00148 Loggable & operator = ( const Loggable & source ) ;
00149
00150
00151 } ;
00152
00153 }
00154
00155 }
00156
00157
00158
00159 #endif // CEYLAN_LOGGABLE_H_
00160