X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FDefinitions.ih;fp=Utils%2FLogger%2FArea.ih;h=7e973810a614be8efc361fe47de2970f6cadab37;hb=61419d9a2e1060f7ede22fa19fd9d0b401bbc87a;hp=168ecb08472e08a4dc9d179de35319ada726a17b;hpb=759310ea14e1fa1eb65f029762efa32d52539e59;p=senf.git diff --git a/Utils/Logger/Area.ih b/Utils/Logger/Definitions.ih similarity index 75% rename from Utils/Logger/Area.ih rename to Utils/Logger/Definitions.ih index 168ecb0..7e97381 100644 --- a/Utils/Logger/Area.ih +++ b/Utils/Logger/Definitions.ih @@ -2,7 +2,7 @@ // // Copyright (C) 2007 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Kompetenzzentrum fuer NETwork research (NET) // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -21,43 +21,15 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief Area internal header */ + \brief Definitions internal header */ -#ifndef IH_Area_ -#define IH_Area_ 1 +#ifndef IH_Definitions_ +#define IH_Definitions_ 1 // Custom includes -#include -#include ///////////////////////////////ih.p//////////////////////////////////////// -namespace senf { -namespace log { -namespace detail { - - class StreamBase; - - struct AreaBase - { - virtual ~AreaBase() {}; - - std::string fullName() const; - virtual std::string v_name() const; - - void init(); - - unsigned streamLimit(StreamBase const & stream) const; - void setStreamLimit(StreamBase const & stream, unsigned value) const; - - private: - typedef std::vector StreamLimits; - // mutable since this is a cache and may therefore change at unexpected places ... - mutable StreamLimits streamLimits_; - }; - -}}} - #define SENF_LOG_DEF_AREA_I(area, decls) \ struct area \ : public senf::log::detail::AreaBase, public senf::singleton \ @@ -69,6 +41,15 @@ namespace detail { friend class senf::singleton; \ } +namespace senf { +namespace log { +namespace detail { + + /// Internal: Alias base class + struct AliasBase {}; + +}}} + ///////////////////////////////ih.e//////////////////////////////////////// #endif