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

StdioNode.h

00001 /*****************************************************************************
00002  * Author:   Valient Gough <vgough@pobox.com>
00003  *
00004  *****************************************************************************
00005  * Copyright (c) 2004, 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 _StdioNode_incl_
00021 #define _StdioNode_incl_
00022 
00023 #include <rlog/RLogNode.h>
00024 
00025 namespace rlog
00026 {
00027     // documentation in implementation file
00028     class StdioNode : public RLogNode
00029     {
00030     public:
00031         StdioNode( int fdOut, bool colorize_if_tty = true );
00032         virtual ~StdioNode();
00033 
00034         void subscribeTo( RLogNode *node );
00035 
00036     protected:
00037         virtual void publish( const RLogData &data );
00038 
00039         bool colorize;
00040         int fdOut;
00041     };
00042 
00043 }
00044 
00045 #endif

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