40 virtual const char*
getName()
const
55 return first.i == second.i;
66 friend inline std::ostream&
operator<<(std::ostream& out,
const __A__&
object)
68 return out <<
object.getName() <<
object.i;
93 virtual const char*
getName()
const
107 int main(
int argc,
char **argv)
115 JParser<> zap(
"Example program to test object multiplexing and demultiplexing.");
121 catch(
const exception &error) {
122 FATAL(error.what() << endl);
131 for (
int i = 1;
i != 4; ++
i) {
137 cout <<
"a_in ";
copy(a_in.begin(), a_in.end(), ostream_iterator<__A__>(cout,
" ")); cout << endl;
138 cout <<
"b_in ";
copy(b_in.begin(), b_in.end(), ostream_iterator<__B__>(cout,
" ")); cout << endl;
144 JSTDObjectReader<typelist>
in;
150 JSTDObjectWriter<typelist> out;
159 JObjectMultiplexer<typelist> multiplexer (
in);
161 JObjectDemultiplexer<__A__, typelist> demultiplexer(out);
164 multiplexer >> demultiplexer;
167 cout <<
"a_out ";
copy(a_out.begin(), a_out.end(), ostream_iterator<__A__>(cout,
" ")); cout << endl;
168 cout <<
"b_out ";
copy(b_out.begin(), b_out.end(), ostream_iterator<__B__>(cout,
" ")); cout << endl;
Utility class to parse command line options.
int main(int argc, char *argv[])
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
bool operator==(Packet const &p, ID const &id)
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
const char * getName()
Get ROOT name of given data type.