X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FAreaRegistry.ih;h=d5cd80956d1ae827d6a74fe9053b30bbcfa1ca8f;hb=c5ebf1fef99c27a3fdc02a70bff041ac881f4c32;hp=41ca82bed16e763c4b7eab28c034647098437d49;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/Utils/Logger/AreaRegistry.ih b/Utils/Logger/AreaRegistry.ih index 41ca82b..d5cd809 100644 --- a/Utils/Logger/AreaRegistry.ih +++ b/Utils/Logger/AreaRegistry.ih @@ -23,15 +23,15 @@ /** \file \brief AreaRegistry internal header */ -#ifndef IH_AreaRegistry_ -#define IH_AreaRegistry_ 1 +#ifndef IH_SENF_Utils_Logger_AreaRegistry_ +#define IH_SENF_Utils_Logger_AreaRegistry_ 1 // Custom includes #include #include #include -#include #include "Levels.hh" +#include "TimeSource.hh" ///////////////////////////////ih.p//////////////////////////////////////// @@ -47,18 +47,20 @@ namespace detail { /** \brief Internal: Area base class */ struct AreaBase { - virtual ~AreaBase() {}; + AreaBase(); + virtual ~AreaBase(); std::string fullName() const; virtual std::string v_name() const; void init(); + bool alive() const; unsigned limit(StreamBase const & stream) const; void updateRoutingCache(Target & target, StreamBase const & stream, unsigned limit) const; void removeRoutingCache(Target & target, StreamBase const & stream) const; - void write(boost::posix_time::ptime timestamp, StreamBase const & stream, unsigned level, - std::string msg) const; + void write(time_type timestamp, StreamBase const & stream, unsigned level, + std::string const & msg) const; private: struct RouteEntry { @@ -74,6 +76,7 @@ namespace detail { }; typedef std::vector RoutingCache; mutable RoutingCache routingCache_; + bool alive_; }; }}}