-
Notifications
You must be signed in to change notification settings - Fork 0
/
manip-explicit.icc
50 lines (40 loc) · 1.34 KB
/
manip-explicit.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
// -*- C++ -*-
//
//--------------------------------------------------------------------------------
//
// Michael A.G. Aivazis
// California Institute of Technology
// (C) 1998-2005 All Rights Reserved
//
// <LicenseText>
//
//--------------------------------------------------------------------------------
//
#if !defined(journal_manip_explicit_icc)
#error This header file contains manipulator implementation details
#else
journal::set_t::set_t(factory_t f, const char * key, const char * value) :
_f(f), _key(key), _value(value)
{}
journal::loc2_t::loc2_t(factory_t f, const char * file, long line) :
_f(f), _file(file), _line(line)
{}
journal::loc3_t::loc3_t(factory_t f, const char * file, long line, const char * function) :
_f(f), _file(file), _line(line), _function(function)
{}
journal::Diagnostic & operator<< (journal::Diagnostic & s, journal::set_t m)
{
return (*m._f)(s, m._key, m._value);
}
journal::Diagnostic & operator<< (journal::Diagnostic & s, journal::loc2_t m)
{
return (*m._f)(s, m._file, m._line);
}
journal::Diagnostic & operator<< (journal::Diagnostic & s, journal::loc3_t m)
{
return (*m._f)(s, m._file, m._line, m._function);
}
#endif
// version
// $Id: manip-explicit.icc,v 1.1.1.1 2006-11-27 00:09:39 aivazis Exp $
// End of file