GraviDy  1.0
Gravitational Dynamics N-body integrator
Public Member Functions | Public Attributes | List of all members
OptionsParser Class Reference

Class in charge to handle all the command-line parameters. More...

#include <OptionsParser.hpp>

Collaboration diagram for OptionsParser:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

§ OptionsParser()

OptionsParser::OptionsParser ( int  argc,
char *  argv[] 
)

Constructor which includes the options and requirements for the command line interface.

§ ~OptionsParser()

OptionsParser::~OptionsParser ( )

Destructor.

Member Function Documentation

§ check_options()

bool OptionsParser::check_options ( )

Method in charge to verify all the command-line arguments that where used for the current run.

§ file_exists()

bool OptionsParser::file_exists ( std::string  filename)

Method that check if a file exist on the system.

Member Data Documentation

§ desc

po::options_description OptionsParser::desc

§ eta

float OptionsParser::eta

§ gpus

int OptionsParser::gpus

§ input_filename

std::string OptionsParser::input_filename

§ integration_time

float OptionsParser::integration_time

§ ops

options OptionsParser::ops

§ output_filename

std::string OptionsParser::output_filename

§ resume

bool OptionsParser::resume

§ resume_filename

std::string OptionsParser::resume_filename

§ snapshot_filename

std::string OptionsParser::snapshot_filename

§ snapshot_number

unsigned int OptionsParser::snapshot_number

§ snapshot_time

float OptionsParser::snapshot_time

§ softening

float OptionsParser::softening

§ vm

po::variables_map OptionsParser::vm

The documentation for this class was generated from the following files: