// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer NETwork research (NET)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
#define IH_Target_ 1
// Custom includes
+#include <memory>
+#include <boost/scoped_ptr.hpp>
///////////////////////////////ih.p////////////////////////////////////////
void write(StreamBase const & stream, AreaBase const & area, unsigned level,
std::string msg);
+ void timeSource(std::auto_ptr<TimeSource> source);
+
+ void routed();
+ bool fallbackRouting();
+
private:
+ TargetRegistry();
+
void registerTarget(Target * target);
void unregisterTarget(Target * target);
typedef std::set<Target *> Targets;
Targets targets_;
+ boost::scoped_ptr<TimeSource> timeSource_;
+
+ bool fallbackRouting_;
friend class senf::log::Target;
+ friend class senf::singleton<TargetRegistry>;
};
/** \brief Internal: Write log message */