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);
72 inline std::ostream& operator<<(std::ostream& out, const std::vector<int>& object)
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;
Utility class to parse command line options.
Test availability of stream operators.
friend std::istream & operator>>(std::istream &in, __A__ &object)
Read object from input.
#define ASSERT(A,...)
Assert macro.
Auxiliary template class for type bool.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary data structure for handling std::ostream.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
General purpose messaging.
#define PRINT(OUT, CLASS)
Print class parameters.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
then $JPP_DIR software JCalibrate JCalibrateToT a
Utility class to parse command line options.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
int main(int argc, char *argv[])