28 return in >> box.
x1 >> box.
y1 >> box.
x2 >> box.
y2;
60int main(
int argc,
char **argv)
68 JParameters_t parameters;
70 Color_t color = kBlack;
74 Color_t color = kBlack;
75 Style_t style = kSolid;
90 JParser<> zap(
"Auxiliary program to create TBox");
93 zap[
'p'] =
make_field(parameters,
"x1 y1 x2 y2");
99 catch(
const exception &error) {
100 FATAL(error.what() << endl);
106 for (
size_t i = 0; i != parameters.size(); ++i) {
108 TBox* p =
new TBox(parameters[i].x1, parameters[i].y1, parameters[i].x2, parameters[i].y2);
110 p->SetFillColor(fill.color);
111 p->SetFillStyle(fill.style);
112 p->SetLineColor(line.color);
113 p->SetLineStyle(line.style);
114 p->SetLineWidth(line.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 zmake_property(A)
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for box.
friend std::istream & operator>>(std::istream &in, JBox &box)
Read box from input stream.
friend std::ostream & operator<<(std::ostream &out, const JBox &box)
Write box to output stream.
Auxiliary wrapper for I/O of container with optional comment (see JComment).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...