42 return out <<
text.x1 <<
' ' <<
text.y1 <<
' ' <<
text.text;
56 int main(
int argc,
char **argv)
64 JParameters_t parameters;
67 Color_t color = kBlack;
82 JParser<> zap(
"Auxiliary program to create TText.");
85 zap[
'p'] =
make_field(parameters,
"x1 y1 text");
91 catch(
const exception &error) {
92 FATAL(error.what() << endl);
98 for (
size_t i = 0; i != parameters.size(); ++i) {
100 TText* p =
new TText(parameters[i].x1, parameters[i].y1, parameters[i].
text.c_str());
102 p->SetTextAlign(align);
103 p->SetTextAngle(angle);
104 p->SetTextColor(color);
105 p->SetTextFont (font);
106 p->SetTextSize (size);
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
int main(int argc, char **argv)
Utility class to parse parameter values.
Utility class to parse command line options.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
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).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary data structure for line.
friend std::istream & operator>>(std::istream &in, JText &text)
Read text from input stream.
friend std::ostream & operator<<(std::ostream &out, const JText &text)
Write text to output stream.