/* Web Polygraph http://www.web-polygraph.org/ * (C) 2003-2006 The Measurement Factory * Licensed under the Apache License, Version 2.0 */ #include "base/polygraph.h" #include "loganalyzers/RepOpts.h" RepOpts TheRepOpts; RepOpts::RepOpts(): theHelpOpt(this, "help", "list of options"), theVersOpt(this, "version", "package version info"), theLabel(this, "label ", "test label"), thePhases(this, "phases ", "names of phases for executive summary"), theRepDir(this, "report_dir ", "report's root directory"), theTmpDir(this, "tmp_dir ", "temporary dir", "/tmp"), thePlotter(this, "plotter ", "gnuplot location", GNUPLOT_EXE) { } bool RepOpts::validate() const { if (!thePlotter) cerr << "plotter location must be specified" << endl; else return OptGrp::validate(); return false; } ostream &RepOpts::printAnonym(ostream &os) const { return os << " ..."; } bool RepOpts::parseAnonym(const Array &opts) { for (int i = 0 ; i < opts.count(); ++i) theFiles.append(new String(opts[i])); return theFiles.count() > 0; }