25 inline typename T::value_type
get(
const T& buffer,
int index)
27 typename T::const_iterator p = buffer.begin();
42 int main(
int argc,
char **argv)
51 JParser<> zap(
"Example program to test assignment of comma separated values.");
57 catch(
const exception &error) {
58 FATAL(error.what() << endl);
72 ASSERT(
get(buffer,1) == b);
73 ASSERT(
get(buffer,2) == c);
74 ASSERT(
get(buffer,3) == d);
82 ASSERT(
get(buffer,0) == a);
83 ASSERT(
get(buffer,1) == b);
84 ASSERT(
get(buffer,2) == c);
91 assign(buffer) = make_pair(1,-1), make_pair(2,-2), make_pair(3,-3), make_pair(4,-4);
102 assign(front_inserter(buffer)) = b,
a;
103 assign(back_inserter (buffer)) = c,
d;
105 ASSERT(
get(buffer,0) == a);
106 ASSERT(
get(buffer,1) == b);
107 ASSERT(
get(buffer,2) == c);
108 ASSERT(
get(buffer,3) == d);
Utility class to parse command line options.
Utility method to assign multiple values to STD container.
#define ASSERT(A,...)
Assert macro.
JAssignSequence< typename JContainer_t::value_type > assign(JContainer_t &out)
Helper method to assign sequence of Comma Separated Values to output container.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
do set_variable OUTPUT_DIRECTORY $WORKDIR T
General purpose messaging.
counter_type advance(counter_type &counter, const counter_type value, const counter_type limit=std::numeric_limits< counter_type >::max())
Advance counter.
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Utility class to parse command line options.
int main(int argc, char *argv[])