GraviDy
1.0
Gravitational Dynamics N-body integrator
|
Class in charge to handle all the command-line parameters. More...
#include <OptionsParser.hpp>
Public Member Functions | |
OptionsParser (int argc, char *argv[]) | |
Constructor which includes the options and requirements for the command line interface. More... | |
~OptionsParser () | |
Destructor. More... | |
bool | file_exists (std::string filename) |
Method that check if a file exist on the system. More... | |
bool | check_options () |
Method in charge to verify all the command-line arguments that where used for the current run. More... | |
Public Attributes | |
std::string | input_filename |
std::string | output_filename |
std::string | resume_filename |
std::string | snapshot_filename |
float | integration_time |
int | gpus |
float | snapshot_time |
float | softening |
float | eta |
unsigned int | snapshot_number |
bool | resume |
options | ops |
po::variables_map | vm |
po::options_description | desc |
Class in charge to handle all the command-line parameters.
Besides handling the information, this class uses the boost/program_options module to verify all the options.
OptionsParser::OptionsParser | ( | int | argc, |
char * | argv[] | ||
) |
Constructor which includes the options and requirements for the command line interface.
OptionsParser::~OptionsParser | ( | ) |
Destructor.
bool OptionsParser::check_options | ( | ) |
Method in charge to verify all the command-line arguments that where used for the current run.
bool OptionsParser::file_exists | ( | std::string | filename | ) |
Method that check if a file exist on the system.
po::options_description OptionsParser::desc |
float OptionsParser::eta |
int OptionsParser::gpus |
std::string OptionsParser::input_filename |
float OptionsParser::integration_time |
options OptionsParser::ops |
std::string OptionsParser::output_filename |
bool OptionsParser::resume |
std::string OptionsParser::resume_filename |
std::string OptionsParser::snapshot_filename |
unsigned int OptionsParser::snapshot_number |
float OptionsParser::snapshot_time |
float OptionsParser::softening |
po::variables_map OptionsParser::vm |