Sierra Toolkit
Version of the Day
WriterOStream.hpp
1
/*------------------------------------------------------------------------*/
2
/* Copyright 2010 Sandia Corporation. */
3
/* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4
/* license for use of this work by or on behalf of the U.S. Government. */
5
/* Export of this program may require a license from the */
6
/* United States Government. */
7
/*------------------------------------------------------------------------*/
8
9
#ifndef STK_UTIL_DIAG_WRITEROSTREAM_HPP
10
#define STK_UTIL_DIAG_WRITEROSTREAM_HPP
11
12
#include <stk_util/diag/Writer.hpp>
13
14
namespace
stk_classic
{
15
namespace
diag {
16
21
33
template
<
class
T>
34
Writer
&operator<<(
Writer
&dout,
const
T &t) {
35
if
(dout.shouldPrint())
36
dout.getStream() << t;
37
38
return
dout;
39
}
40
44
45
}
// namespace diag
46
}
// namespace stk_classic
47
48
#endif // STK_UTIL_DIAG_WRITEROSTREAM_HPP
stk_classic
Sierra Toolkit.
Definition:
AlgorithmRunner.cpp:16
stk_classic::diag::Writer
Class Writer implements a runtime selectable diagnostic output writer to aid in the development and d...
Definition:
Writer.hpp:49
stk_util
stk_util
diag
WriterOStream.hpp
Generated by
1.8.14