Exemple #1
0
 // Default constructor
 SpectraCnPlotArgs() : BasePlotArgs(MIN_ARGS),
     mx_arg(""), x_max(DEFAULT_X_MAX), y_max(DEFAULT_Y_MAX), ignore_absent(DEFAULT_IGNORE_ABSENT), max_duplication(DEFAULT_DUPLICATION), columns("")
 {
     title = defaultTitle();
     x_label = defaultXLabel();
     y_label = defaultYLabel();
     width = defaultWidth();
     height = defaultHeight();
 }
Exemple #2
0
        const string optionsDescription() const
        {
            ostringstream help_str;

            help_str << " -p, --output_type=string    The plot file type to create: png, ps, pdf.  Warning... if pdf is selected" << endl
                     << "                             please ensure your gnuplot installation can export pdf files. (\"" << DEFAULT_OUTPUT_TYPE << "\")" << endl
                     << " -o, --output=string         Output file (\"" << defaultOutputPrefix() << "." << DEFAULT_OUTPUT_TYPE << "\")" << endl
                     << " -t, --title=string          Title for plot (\"" << defaultTitle() << "\")" << endl
                     << " -i, --x_label=string        Label for the x-axis (\"" << defaultXLabel() << "\")" << endl
                     << " -j, --y_label=string        Label for the y-axis (\"" << defaultYLabel() << "\")" << endl
                     << " -w, --width=uint16          Width of canvas (" << defaultWidth() << ")" << endl
                     << " -h, --height=uint16         Height of canvas (" << defaultHeight() << ")";

            return help_str.str();
        }
bool HtmlPlugin::readDescription(const std::string &path, BookDescription &description) const {
	ZLFile file(path);
	shared_ptr<ZLInputStream> stream = file.inputStream();
	if (stream.isNull()) {
		return false;
	}

	detectEncodingAndLanguage(description, *stream);
	if (description.encoding().empty()) {
		return false;
	}
	HtmlDescriptionReader(description).readDocument(*stream);
	defaultTitle(description, file.name());

	return true;
}