#include <ostream_handle.h>
Definition at line 37 of file ostream_handle.h.
cet::ostream_handle::ostream_handle |
( |
| ) |
|
|
default |
cet::ostream_handle::ostream_handle |
( |
std::ostream & |
os | ) |
|
|
inline |
Definition at line 42 of file ostream_handle.h.
43 :
osh_{std::make_unique<detail::ostream_observer>(os)}
std::unique_ptr< detail::ostream_handle_base > osh_
cet::ostream_handle::ostream_handle |
( |
std::string const & |
fn, |
|
|
std::ios_base::openmode const |
mode = std::ios_base::out |
|
) |
| |
|
inline |
Definition at line 47 of file ostream_handle.h.
49 :
osh_{std::make_unique<detail::ostream_owner<std::ofstream>>(
50 std::ofstream(
fn, mode))}
std::unique_ptr< detail::ostream_handle_base > osh_
template<typename OSTREAM , typename = std::enable_if_t<std::is_base_of_v<std::ostream, OSTREAM>>>
cet::ostream_handle::ostream_handle |
( |
OSTREAM && |
os | ) |
|
|
inline |
Definition at line 57 of file ostream_handle.h.
58 :
osh_{std::make_unique<detail::ostream_owner<OSTREAM>>(
std::move(os))}
std::unique_ptr< detail::ostream_handle_base > osh_
void cet::ostream_handle::flush |
( |
| ) |
|
|
inline |
Definition at line 77 of file ostream_handle.h.
79 osh_->stream().flush();
std::unique_ptr< detail::ostream_handle_base > osh_
cet::ostream_handle::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Definition at line 81 of file ostream_handle.h.
81 {
return static_cast<bool>(
osh_->stream()); }
std::unique_ptr< detail::ostream_handle_base > osh_
cet::ostream_handle::operator std::ostream & |
( |
| ) |
|
|
inline |
Definition at line 82 of file ostream_handle.h.
82 {
return osh_->stream(); }
std::unique_ptr< detail::ostream_handle_base > osh_
Definition at line 62 of file ostream_handle.h.
std::unique_ptr< detail::ostream_handle_base > osh_
void msg(const char *fmt,...)
Definition at line 70 of file ostream_handle.h.
std::unique_ptr< detail::ostream_handle_base > osh_
The documentation for this class was generated from the following file: