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_OBJECT_CHANNEL_H_
00028 #define CEYLAN_OBJECT_CHANNEL_H_
00029
00030
00031 #include "CeylanLog.h"
00032 #include "CeylanLogChannel.h"
00033
00034
00035 #include <string>
00036 #include <list>
00037
00038
00039
00040 namespace Ceylan
00041 {
00042
00043
00044 namespace Log
00045 {
00046
00047
00048
00049
00050 class ObjectIdentifier ;
00051
00052
00063 class CEYLAN_DLL ObjectChannel : public LogChannel
00064 {
00065
00066 public:
00067
00068
00079 explicit ObjectChannel( const std::string & channelName ) ;
00080
00081
00082
00084 virtual ~ObjectChannel() throw() ;
00085
00086
00087
00106 virtual void addMessage( LogMessage & message,
00107 bool check = true ) ;
00108
00109
00110
00117 virtual ObjectIdentifier & getObjectIdentifier() const ;
00118
00119
00120
00133 virtual const std::string toString(
00134 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00135
00136
00137
00138 protected:
00139
00140
00146 ObjectIdentifier * _linkedObjectID ;
00147
00148
00149
00150 private:
00151
00152
00161 ObjectChannel( const ObjectChannel & source ) ;
00162
00163
00172 ObjectChannel & operator = ( const ObjectChannel & source ) ;
00173
00174
00175 } ;
00176
00177 }
00178
00179 }
00180
00181
00182
00183 #endif // CEYLAN_OBJECT_CHANNEL_H_
00184