Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | Related Pages

RLogPublisher.h

00001 /*****************************************************************************
00002  * Author:   Valient Gough <vgough@pobox.com>
00003  *
00004  *****************************************************************************
00005  * Copyright (c) 2002-2003, Valient Gough
00006  *
00007  * This library is free software; you can distribute it and/or modify it under
00008  * the terms of the GNU Lesser General Public License (LGPL), as published by
00009  * the Free Software Foundation; either version 2.1 of the License, or (at your
00010  * option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014  * FITNESS FOR A PARTICULAR PURPOSE.  See the LGPL in the file COPYING for more
00015  * details.
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     // documentation in implementation file
00032     class RLogPublisher : public RLogNode
00033     {
00034     public:
00035         RLogPublisher(PublishLoc *src);
00036         RLogPublisher();
00037         virtual ~RLogPublisher();
00038 
00039         // metadata about the publisher and its publication
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 } // namespace rlog
00055 
00056 #endif
00057 

Generated on Sun Mar 14 14:49:50 2004 for rlog by doxygen 1.3.2