Engauge Digitizer 2
Loading...
Searching...
No Matches
CategoryStream.hh
Go to the documentation of this file.
1#ifndef CATEGORY_STREAM_HH
2#define CATEGORY_STREAM_HH
3
4#include <ios>
5#include "log4cpp/Priority.hh"
6
7namespace log4cpp {
8
9 class Category;
10 class CategoryStream;
11
13
16 {
17 public:
19 CategoryStream(Category &category,
20 Priority::Value priority);
21
22 virtual ~CategoryStream();
23
25 inline Category &getCategory() const { return m_category; }
26
29 return m_priority;
30 }
31
33 void flush ();
34
36 template<typename T>
38 return *this;
39 }
40
42 CategoryStream &operator<<(const char*) {
43 return *this;
44 }
45
47 CategoryStream &operator<<(const std::string &) {
48 return *this;
49 }
50
52 std::streamsize width(std::streamsize wide);
53
54 private:
55
56 Category &m_category;
57 Priority::Value m_priority;
58 };
59}
60
61#endif // CATEGORY_STREAM_HH
Streaming of simple types and objects to a category.
CategoryStream(Category &category, Priority::Value priority)
Single constructor.
Category & getCategory() const
Return useless value.
std::streamsize width(std::streamsize wide)
Noop method to get width.
Priority::Value getPriority()
Return useless value.
CategoryStream & operator<<(const T &)
Stream of arbitrary types and objects.
CategoryStream & operator<<(const char *)
Noop insertion method for character.
CategoryStream & operator<<(const std::string &)
Noop insertion method for string.
Noop class that mimics class of the same name in log4cpp library.
Definition Category.hh:15
int Value
Priority level.
Definition Priority.hh:24
CategoryStream & eol(CategoryStream &os)