Spike
Loading...
Searching...
No Matches
Spike::IO Class Reference

Implements an input-output interface. Reads the command line for an input file and defines according output file. More...

#include <IO.h>

Public Member Functions

 IO (void(*help)(), const std::string &ending)
 Construct a new IO object.
 
void parse_args (int argc, char *argv[])
 Parses command line arguments.
 
const std::string & get_input_file () const
 Get the path to input file.
 
const std::string & get_output_file () const
 Get the path to output file.
 

Detailed Description

Implements an input-output interface. Reads the command line for an input file and defines according output file.

Constructor & Destructor Documentation

◆ IO()

Spike::IO::IO ( void(*)() help,
const std::string & ending )
inline

Construct a new IO object.

Parameters
helppointer to help function
endingoutput file ending

Member Function Documentation

◆ get_input_file()

const std::string & Spike::IO::get_input_file ( ) const
inline

Get the path to input file.

Returns
path to input file

◆ get_output_file()

const std::string & Spike::IO::get_output_file ( ) const
inline

Get the path to output file.

Returns
path to output file

◆ parse_args()

void Spike::IO::parse_args ( int argc,
char * argv[] )

Parses command line arguments.

Parameters
argc
argv

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