#include "ParUtilities.C"
#include "OutputUtilities.C"
#include "Option.C"
-#include "Helper.C"
-#include "LocalHelper.C"
-#include "ProofHelper.C"
-#include "LiteHelper.C"
-#include "AAFHelper.C"
-#include "PluginHelper.C"
-#include "AAFPluginHelper.C"
-#include "GridHelper.C"
+#include "Railway.C"
+#include "LocalRailway.C"
+#include "ProofRailway.C"
+#include "LiteRailway.C"
+#include "AAFRailway.C"
+#include "PluginRailway.C"
+#include "AAFPluginRailway.C"
+#include "GridRailway.C"
#include "TrainSetup.C"
#include <TGApplication.h>
PrintFakeOption(o, "class=CLASS", "Train class");
PrintFakeOption(o, "name=NAME", "Name of train");
PrintFakeOption(o, "include=DIRECTORY", "Append dir to macro/header path");
+ PrintFakeOption(o, "define=DEFINE", "Set a preprocessor macro");
PrintFakeOption(o, "batch", "Batch mode");
PrintFakeOption(o, "spawn", "Spawn interactive ROOT shell");
}
{
TList optList;
TList paths;
+ TList defines;
TString name;
TString cls;
TString where;
if (arg.BeginsWith("--class")) cls = val;
else if (arg.BeginsWith("--name")) name = val;
else if (arg.BeginsWith("--include")) paths.Add(new TObjString(val));
- // AppendPath(val);
+ else if (arg.BeginsWith("--define")) defines.Add(new TObjString(val));
else if (arg.BeginsWith("--batch")) batch = true;
else if (arg.BeginsWith("--help")) help = true;
else if (arg.BeginsWith("--where")) where = val;
TIter nextP(&paths);
TObject* path = 0;
while ((path = nextP())) AppendPath(path->GetName());
+ TIter nextD(&defines);
+ TObject* def = 0;
+ while ((def = nextD()))
+ gSystem->AddIncludePath(Form("-D%s", def->GetName()));
// --- Initial check or URI/WHERE ----------------------------------
if (!where.IsNull()) {
}
else if (!batch) {
// Info("main", "Creating GUI application");
- app = new TGApplication("runTrain", 0, 0);
+ app = new TApplication("runTrain", 0, 0);
}
if (app && !batch) app->InitializeGraphics();