Go to the documentation of this file. 1 #ifndef __JLANG__JSTREAMAVAILABLE__
2 #define __JLANG__JSTREAMAVAILABLE__
45 template<class T, bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
56 static std::istream&
is();
57 static std::ostream&
os();
JStream(std::ostream &out, const std::string &message)
Constructor.
static const bool has_ostream
true if std::ostream& operator<<(std::ostream&, const T&) is defined; else false
static std::istream & is()
static const bool has_istream
true if std::istream& operator>>(std::istream&, T&) is defined; else false
STREAM(const std::string &message="")
Constructor.
Auxiliary class for no type definition.
static JFalse test(...)
default false
Auxiliary base class for compile time evaluation of test.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
#define JTEST(__A__)
Test macro.
static JTrue test(std::istream &)
static std::ostream & os()
friend JStream operator<<(std::ostream &out, const STREAM &format)
Format specifier.
std::ostream & print(std::ostream &out, const T &value, const JLANG::JBool< true > &option)
Print value if given option is true.
Test availability of stream operators.
static T & getReference()
std::ostream & print(std::ostream &out, const T &value, const JLANG::JBool< false > &option)
Print value if given option is true.
Auxiliary template class for type bool.
Auxiliary class for format stream.
std::ostream & operator<<(const T &value)
Write value to output stream.
Auxiliary data structure for handling std::ostream.
Auxiliary class for any type definition.
JLANG::JNullType operator>>(std::istream &in, JLANG::JAnyType any_type)
Fallback implementation for std::istream& operator>>(std::istream, T&) for types that don't support t...