-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diagnostic.icc
58 lines (45 loc) · 1.27 KB
/
Diagnostic.icc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// -*- C++ -*-
//
//--------------------------------------------------------------------------------
//
// Michael A.G. Aivazis
// California Institute of Technology
// (C) 1998-2005 All Rights Reserved
//
// <LicenseText>
//
//--------------------------------------------------------------------------------
//
#if !defined(journal_Diagnostic_icc)
#error This header file contains implementation details of the class Diagnostic
#else
// inlines
// interface
void journal::Diagnostic::activate() {
state(true);
return;
}
void journal::Diagnostic::deactivate() {
state(false);
return;
}
journal::Diagnostic::string_t journal::Diagnostic::facility() const {
return _facility;
}
journal::Diagnostic::string_t journal::Diagnostic::str() const {
return _buffer.str();
}
template <typename item_t>
journal::Diagnostic & journal::Diagnostic::inject(const item_t & item) {
_buffer << item;
return *this;
}
// the injection operator
template <typename item_t>
journal::Diagnostic & operator<< (journal::Diagnostic & diagnostic, const item_t & item) {
return diagnostic.inject(item);
}
#endif
// version
// $Id: Diagnostic.icc,v 1.1.1.1 2006-11-27 00:09:37 aivazis Exp $
// End of file