/* 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/CompOpts.h" CompOpts TheCompOpts; CompOpts::CompOpts(): theHelpOpt(this, "help", "list of options"), theVersOpt(this, "version", "package version info"), theDelta(this, "delta ", "maximum value difference to ignore", 0.0), thePhases(this, "phases ", "names of phases for executive summary"), theCompDir(this, "report_dir ", "report's root directory"), theTmpDir(this, "tmp_dir ", "temporary dir", "/tmp") { } bool CompOpts::validate() const { return OptGrp::validate(); } ostream &CompOpts::printAnonym(ostream &os) const { return os << " ..."; } bool CompOpts::parseAnonym(const Array &opts) { for (int i = 0 ; i < opts.count(); ++i) theReports.append(new String(opts[i])); return theReports.count() > 0; }