Utils/Termlib: Extend the completion API
[senf.git] / Utils / Logger / AreaRegistry.ih
index a3b6124..d5cd809 100644 (file)
@@ -23,8 +23,8 @@
 /** \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 <string>
@@ -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(time_type timestamp, StreamBase const & stream, unsigned level,
-              std::string msg) const;
+                   std::string const & msg) const;
 
     private:
         struct RouteEntry {
@@ -74,6 +76,7 @@ namespace detail {
         };
         typedef std::vector<CacheEntry> RoutingCache;
         mutable RoutingCache routingCache_;
+        bool alive_;
     };
 
 }}}