29 return in >> line.
x1 >> line.
y1 >> line.
x2 >> line.
y2;
41 return out << line.
x1 <<
' ' << line.
y1 <<
' ' << line.
x2 <<
' ' << line.
y2;
56int main(
int argc,
char **argv)
64 JParameters_t parameters;
65 Color_t color = kBlack;
66 Style_t style = kSolid;
78 JParser<> zap(
"Auxiliary program to create TLine.");
81 zap[
'p'] =
make_field(parameters,
"x1 y1 x2 y2");
87 catch(
const exception &error) {
88 FATAL(error.what() << endl);
94 for (
size_t i = 0; i != parameters.size(); ++i) {
96 TLine* p =
new TLine(parameters[i].x1, parameters[i].y1, parameters[i].x2, parameters[i].y2);
98 p->SetLineColor(color);
99 p->SetLineStyle(style);
100 p->SetLineWidth(width);
int main(int argc, char **argv)
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary wrapper for I/O of container with optional comment (see JComment).
Auxiliary data structure for line.
friend std::istream & operator>>(std::istream &in, JLine &line)
Read line from input stream.
friend std::ostream & operator<<(std::ostream &out, const JLine &line)
Write line to output stream.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...