286{
289
291 string jpp;
292 string dir;
294
295 try {
296
297 JParser<> zap(
"Example program to test dependencies of include files");
298
303
304 zap(argc, argv);
305 }
306 catch(const exception &error) {
307 FATAL(error.what() << endl);
308 }
309
310
311 const JDirectory directory(jpp);
312
313
315
317
318 if (pos != string::npos) {
319 outputFile.replace(pos, 1, (dir !=
"" ? dir.c_str() :
"Jpp"));
320 }
321
323
324 out << "\\documentclass[border=5mm]{standalone}" << endl;
325 out << "" << endl;
326 out << "\\usepackage{tikz}" << endl;
327 out << "\\usetikzlibrary{graphs, graphdrawing}" << endl;
328 out << "\\usegdlibrary{layered}" << endl;
329 out << "\\begin{document}" << endl;
330 out << "" << endl;
331 out << "\\tikz \\graph [layered layout]" << endl;
332 out << "{" << endl;
333
334 if (dir == "")
335 directory.print(out);
336 else
337 directory.print(out, dir);
338
339 out << "};" << endl;
340 out << "" << endl;
341 out << "\\end{document}" << endl;
342
343 out.close();
344 }
345
346
347 for (JDirectory::const_iterator i = directory.begin(); i != directory.end(); ++i) {
348
349 DEBUG(i->first <<
": " << flush);
350
351 if (!directory.is_valid(i->first)) {
352
353 const JDirectory::path_type path = directory.getPath(i->first);
354
355 for (JDirectory::path_type::const_iterator dir = path.begin(); dir != path.end(); ++dir) {
357 }
358 }
359
361 }
362
363 for (JDirectory::const_iterator i = directory.begin(); i != directory.end(); ++i) {
364 ASSERT(directory.is_valid(i->first),
"check validity " << i->first);
365 }
366
367 return 0;
368}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).