Pakman
input.h File Reference
#include <string>
#include <vector>
#include "types.h"
Include dependency graph for input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int parse_integer (const std::string &raw_input)
 
unsigned long parse_unsigned_long_integer (const std::string &raw_input)
 
Command parse_command (const std::string &raw_input)
 
Epsilon parse_epsilon (const std::string &raw_input)
 
std::vector< Epsilonparse_epsilons (const std::string &raw_input)
 
std::vector< ParameterNameparse_parameter_names (const std::string &raw_input)
 

Detailed Description

This file contains functions to parse user input from command-line arguments.

Definition in file input.h.

Function Documentation

◆ parse_command()

Command parse_command ( const std::string &  raw_input)

Parse Command.

Parameters
raw_inputraw input string.
Returns
parsed Command.

Definition at line 19 of file input.cc.

◆ parse_epsilon()

Epsilon parse_epsilon ( const std::string &  raw_input)

Parse Epsilon.

Parameters
raw_inputraw input string.
Returns
parsed Epsilon.

Definition at line 24 of file input.cc.

◆ parse_epsilons()

std::vector<Epsilon> parse_epsilons ( const std::string &  raw_input)

Parse comma-separated epsilon list.

Parameters
raw_inputraw input string.
Returns
vector of parsed Epsilons.

Definition at line 29 of file input.cc.

◆ parse_integer()

int parse_integer ( const std::string &  raw_input)

Parse integer.

Parameters
raw_inputraw input string.
Returns
parsed integer.

Definition at line 9 of file input.cc.

◆ parse_parameter_names()

std::vector<ParameterName> parse_parameter_names ( const std::string &  raw_input)

Parse comma-separated parameter names.

Parameters
raw_inputraw input string.
Returns
vector of parsed ParameterNames.

Definition at line 42 of file input.cc.

◆ parse_unsigned_long_integer()

unsigned long parse_unsigned_long_integer ( const std::string &  raw_input)

Parse unsigned long integer.

Parameters
raw_inputraw input string.
Returns
parsed unsigned long integer.

Definition at line 14 of file input.cc.