Auxiliary class for format stream.
More...
#include <JStreamAvailable.hh>
|
template<class T > |
std::ostream & | print (std::ostream &out, const T &value, const JLANG::JBool< true > &option) |
| Print value if given option is true. More...
|
|
template<class T > |
std::ostream & | print (std::ostream &out, const T &value, const JLANG::JBool< false > &option) |
| Print value if given option is true. More...
|
|
Auxiliary class for format stream.
Definition at line 41 of file JStreamAvailable.hh.
◆ JStream()
STREAM::JStream::JStream |
( |
std::ostream & |
out, |
|
|
const std::string & |
message |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
out | output stream |
message | message printed in case operator std::ostream<< is unavailable |
Definition at line 49 of file JStreamAvailable.hh.
◆ operator<<()
template<class T >
std::ostream& STREAM::JStream::operator<< |
( |
const T & |
value | ) |
|
|
inline |
Write value to output stream.
- Parameters
-
- Returns
- this JStream
Definition at line 62 of file JStreamAvailable.hh.
Test availability of stream operators.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary template class for type bool.
std::ostream & print(std::ostream &out, const T &value, const JLANG::JBool< true > &option)
Print value if given option is true.
◆ print() [1/2]
template<class T >
std::ostream& STREAM::JStream::print |
( |
std::ostream & |
out, |
|
|
const T & |
value, |
|
|
const JLANG::JBool< true > & |
option |
|
) |
| |
|
inlineprivate |
Print value if given option is true.
- Parameters
-
out | output stream |
value | value |
option | true |
- Returns
- output stream
Definition at line 79 of file JStreamAvailable.hh.
◆ print() [2/2]
template<class T >
std::ostream& STREAM::JStream::print |
( |
std::ostream & |
out, |
|
|
const T & |
value, |
|
|
const JLANG::JBool< false > & |
option |
|
) |
| |
|
inlineprivate |
Print value if given option is true.
- Parameters
-
out | output stream |
value | value |
option | false |
- Returns
- output stream
Definition at line 93 of file JStreamAvailable.hh.
◆ out
std::ostream& STREAM::JStream::out |
|
private |
◆ message
std::string STREAM::JStream::message |
|
private |
The documentation for this struct was generated from the following file: