]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #include "common/ostream_temp.h" | |
5 | ||
6 | OstreamTemp::OstreamTemp(clog_type type_, OstreamTempSink *parent_) | |
7 | : type(type_), parent(parent_) | |
8 | { | |
9 | } | |
10 | ||
11 | OstreamTemp::~OstreamTemp() | |
12 | { | |
13 | if (ss.peek() != EOF && parent) | |
14 | parent->do_log(type, ss); | |
15 | } |