X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FStreamRegistry.hh;h=48e5c59a1816bfc1351132d8bb73ab37cf7395c5;hb=6927c87144ca23845065e3c23e37c75f5f059cf3;hp=f6e87b7f42c2a9a65c4df262743ebeb50a806bca;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Utils/Logger/StreamRegistry.hh b/Utils/Logger/StreamRegistry.hh index f6e87b7..48e5c59 100644 --- a/Utils/Logger/StreamRegistry.hh +++ b/Utils/Logger/StreamRegistry.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -23,12 +23,13 @@ /** \file \brief StreamRegistry public header */ -#ifndef HH_StreamRegistry_ -#define HH_StreamRegistry_ 1 +#ifndef HH_SENF_Utils_Logger_StreamRegistry_ +#define HH_SENF_Utils_Logger_StreamRegistry_ 1 // Custom includes #include #include +#include #include #include "Levels.hh" #include "../singleton.hh" @@ -55,14 +56,9 @@ namespace log { { typedef std::map Registry; - struct SelectName - { - typedef std::string result_type; - std::string const & operator()(Registry::value_type const & v) const; - }; - public: - typedef boost::transform_iterator iterator; + typedef boost::transform_iterator< ::__gnu_cxx::select1st, + Registry::const_iterator > iterator; # ifdef DOXYGEN // Hmm ... doxygen does not understand 'using declarations' ... @@ -75,11 +71,12 @@ namespace log { iterator begin(); iterator end(); + detail::StreamBase const * lookup(std::string const & name); + private: StreamRegistry(); void registerStream(detail::StreamBase const & stream); - detail::StreamBase const * lookup(std::string const & name); Registry registry_;