diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
commit | 8286ac511144e4f17d34eac9affb97e50646344a (patch) | |
tree | f1af7320d7b6be6be059216d0ad08ac7b4f73fd0 /libcult/cult/trace/stream.hxx | |
parent | a15cf65c44d5c224169c32ef5495b68c758134b7 (diff) |
Imported Upstream version 4.0.0upstream/4.0.0
Diffstat (limited to 'libcult/cult/trace/stream.hxx')
-rw-r--r-- | libcult/cult/trace/stream.hxx | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/libcult/cult/trace/stream.hxx b/libcult/cult/trace/stream.hxx deleted file mode 100644 index 728e973..0000000 --- a/libcult/cult/trace/stream.hxx +++ /dev/null @@ -1,74 +0,0 @@ -// file : cult/trace/stream.hxx -// author : Boris Kolpackov <boris@kolpackov.net> -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -#ifndef CULT_TRACE_STREAM_HXX -#define CULT_TRACE_STREAM_HXX - -#include <cult/types/fundamental.hxx> - -#include <cult/trace/log.hxx> -#include <cult/trace/record.hxx> - -namespace Cult -{ - namespace Trace - { - class Stream: public NonCopyable - { - public: - Stream (Char const* id, Int level, Log& l = Log::instance ()); - - public: - Char const* - id () const; - - Int - level () const; - - public: - Stream& - operator<< (Record const& r); - - private: - struct Mediator - { - ~Mediator (); - Mediator (Stream&); - - Stream& s_; - Record r_; - }; - - friend Record& - operator<< (Mediator const&, Int level); - - friend Record& - operator<< (Mediator const&, Char const* s); - - template <typename T> - friend Record& - operator<< (Mediator const&, T const& arg); - - private: - Char const* id_; - Int level_; - Log& log_; - }; - } -} - -#ifndef CULT_TRACE_NULL - -#include <cult/trace/stream.ixx> -#include <cult/trace/stream.txx> - -#else - -#include <cult/trace/null/stream.ixx> -#include <cult/trace/null/stream.txx> - -#endif - -#endif // CULT_TRACE_STREAM_HXX |