2 #include "creativity/cmdargs/CmdArgs.hpp" 3 #include <eris/types.hpp> 18 std::string
series =
"net_u,reader_spending,reader_market_spending,reader_piracy_spending,reader_public_spending,reader_spending_total,books_bought,books_pirated,books_public_copies,books_written_pc,book_quality,book_sales,book_revenue,book_profit,book_author_effort,book_author_scale,book_p0";
74 virtual std::string
usage()
const override;
77 virtual std::string
help()
const override;
88 virtual void postParse(boost::program_options::variables_map &vars)
override;
This class handles command line argument parsing.
Definition: CmdArgs.hpp:31
std::vector< std::string > input
The input files to load data from.
Definition: Series.hpp:58
Primary namespace for all Creativity library code.
Definition: config.hpp:4
bool help_series
A plea for help about possible series values.
Definition: Series.hpp:21
bool memory_xz
If true, decompress xz files into memory.
Definition: Series.hpp:61
eris::eris_time_t periods
The number of periods.
Definition: Series.hpp:26
virtual std::string versionSuffix() const override
Overridden to add " -- simulation data series generator".
virtual std::string help() const override
Overridden to add info about input files.
std::string tmpdir
If memory_xz is false, decompress files into temporary files in this directory instead of into the sa...
Definition: Series.hpp:66
std::string output_dir
The output directory; each variable VAR will be written to a "series-VAR.csv" file in the directory...
Definition: Series.hpp:71
bool allow_unused_periods
Whether files are allowed to contain more than periods periods.
Definition: Series.hpp:29
unsigned int threads
Number of threads to use.
Definition: Series.hpp:52
CmdArgs subclass for creativity-series arguments (for generating series values from crstate files)...
Definition: Series.hpp:11
std::string series
comma-separated list of series to display
Definition: Series.hpp:18
virtual void addOptions() override
Adds series command-line options into the option descriptions.
unsigned int double_precision
The precision of double values. The default is full double precision.
Definition: Series.hpp:49
bool ignore_errors
If true, just warn instead of aborting for files that can't be read or contain invalid period values...
Definition: Series.hpp:46
eris::eris_time_t piracy_begins
The piracy begins period.
Definition: Series.hpp:36
eris::eris_time_t policy_begins
The policy begins period.
Definition: Series.hpp:43
unsigned int preload
Number of files to preload from disk into memory.
Definition: Series.hpp:55
Series()
Constructor for series arguments; takes no arguments.
virtual std::string usage() const override
Overridden to add " FILE [FILE ...]".
virtual void postParse(boost::program_options::variables_map &vars) override
Overridden to make sure an output directory is given.