Go to the documentation of this file.
   21   friend inline std::istream& 
operator>>(std::istream& in, __A__& 
object)
 
   39 inline std::ostream& 
operator<<(std::ostream& out, 
const __B__<T>& 
object)
 
   41   return out << 
"__B__";
 
   57   for (
int value; in >> value; ) {
 
   58     object.push_back(value);
 
   94     out << 
object << std::endl;
 
  108     out << 
"No output operation available." << std::endl;
 
  119   inline void print(std::ostream& out, 
const T& 
object)
 
  131 #define PRINT(OUT, CLASS)                                       \ 
  132   OUT << std::setw(12) << std::left << #CLASS << ' ' ;          \ 
  133   OUT << JStreamAvailable<CLASS>::has_istream << '/';           \ 
  134   OUT << JStreamAvailable<CLASS>::has_ostream << std::endl; 
  144 int main(
int argc, 
char **argv)
 
  153     JParser<> zap(
"Example program to test availability of I/O stream redirection.");
 
  159   catch(
const exception &error) {
 
  160     FATAL(error.what() << endl);
 
  168     cout << setw(12) << left  << 
"class" << 
" I/O" << endl;
 
  169     cout << setw(12) << right << setfill(
'-') << 
"" << 
"+---" << setfill(
' ') << endl;
 
  173     PRINT(cout, __B__<int>);
 
  184     cout << 
"STREAM << __A__: " << 
STREAM(
"?") << a << endl;
 
  185     cout << 
"STREAM << __B__: " << 
STREAM(
"?") << b << endl;
 
  186     cout << 
"STREAM << __C__: " << 
STREAM(
"?") << c << endl;
 
  
int main(int argc, char **argv)
 
#define ASSERT(A,...)
Assert macro.
 
Utility class to parse command line options.
 
std::ostream & operator<<(std::ostream &out, const __B__< T > &object)
Write object to output.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Test availability of stream operators.
 
Auxiliary template class for type bool.
 
std::istream & operator>>(std::istream &in, std::vector< int > &object)
Read std::vector<int> from input.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
 
friend std::istream & operator>>(std::istream &in, __A__ &object)
Read object from input.
 
Auxiliary data structure for handling std::ostream.
 
#define PRINT(OUT, CLASS)
Print class parameters.