00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _RLogPublisher_incl_
00021 #define _RLogPublisher_incl_
00022
00023 #include <rlog/RLogNode.h>
00024
00025 #include <stdarg.h>
00026
00027 namespace rlog
00028 {
00029 class RLogChannel;
00030
00031
00032 class RLogPublisher : public RLogNode
00033 {
00034 public:
00035 RLogPublisher(PublishLoc *src);
00036 RLogPublisher();
00037 virtual ~RLogPublisher();
00038
00039
00040 PublishLoc *src;
00041
00042 using RLogNode::enabled;
00043
00044 static void Publish( PublishLoc *, RLogChannel *,
00045 const char *format, ... );
00046 static void PublishVA( PublishLoc *, RLogChannel *,
00047 const char *format, va_list args );
00048
00049 protected:
00050 virtual void enabled(bool newState);
00051
00052 };
00053
00054 }
00055
00056 #endif
00057