Example program to test dependencies of include files.
More...
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <cstdlib>
#include <vector>
#include <set>
#include <map>
#include <dirent.h>
#include "JSystem/JFilesystem.hh"
#include "JLang/JLangToolkit.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to test dependencies of include files.
- Author
- mdejong
Definition in file JDependencies.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 285 of file JDependencies.cc.
297 JParser<> zap(
"Example program to test dependencies of include files");
306 catch(
const exception &error) {
307 FATAL(error.what() << endl);
311 const JDirectory directory(jpp);
318 if (pos != string::npos) {
319 outputFile.replace(pos, 1, (dir !=
"" ? dir.c_str() :
"Jpp"));
324 out <<
"\\documentclass[border=5mm]{standalone}" << endl;
326 out <<
"\\usepackage{tikz}" << endl;
327 out <<
"\\usetikzlibrary{graphs, graphdrawing}" << endl;
328 out <<
"\\usegdlibrary{layered}" << endl;
329 out <<
"\\begin{document}" << endl;
331 out <<
"\\tikz \\graph [layered layout]" << endl;
335 directory.print(out);
337 directory.print(out, dir);
341 out <<
"\\end{document}" << endl;
347 for (JDirectory::const_iterator i = directory.begin(); i != directory.end(); ++i) {
349 DEBUG(i->first <<
": " << flush);
351 if (!directory.is_valid(i->first)) {
353 const JDirectory::path_type path = directory.getPath(i->first);
355 for (JDirectory::path_type::const_iterator dir = path.begin(); dir != path.end(); ++dir) {
363 for (JDirectory::const_iterator i = directory.begin(); i != directory.end(); ++i) {
364 ASSERT(directory.is_valid(i->first),
"check validity " << i->first);
#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).
static const char WILDCARD