Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

log.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2003, 2004, 2005 Laboratoire de Recherche en Informatique
00002 
00003 // This file is part of Qolyester.
00004 
00005 // Qolyester is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 
00010 // Qolyester is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 
00019 #ifndef QOLYESTER_UTL_LOG_HXX
00020 # define QOLYESTER_UTL_LOG_HXX 1
00021 
00022 # include "log.hh"
00023 
00024 namespace olsr {
00025 
00026   namespace utl {
00027 
00028     template <typename C, typename T>
00029     basic_levelbuf<C, T>::basic_levelbuf(unsigned level, Super* other,
00030                                          const unsigned& minlevel)
00031       : other_(other),
00032         level_(level),
00033         baselevel_(level),
00034         minlevel_(minlevel)
00035     {}
00036 
00037     template <typename C, typename T>
00038     typename basic_levelbuf<C, T>::int_type
00039     basic_levelbuf<C, T>::overflow(int_type c) {
00040       if (level_ <= minlevel_)
00041         return other_->sputc(c);
00042       return 0;
00043     }
00044 
00045   } // namespace utl
00046 
00047   extern std::ostream   error;
00048   extern std::ostream   warning;
00049   extern std::ostream   notice;
00050   extern std::ostream   dump;
00051 
00052   extern debug_ostream_t        debug;
00053 
00054 } // namespace olsr
00055 
00056 #endif // ! QOLYESTER_LOG_HXX

Generated on Thu Jul 28 21:21:47 2005 for Qolyester daemon by  doxygen 1.4.1