MolSSI Integral Reference Project
Namespaces | Functions
cmdline.cpp File Reference

Functions for parsing the command line given to a program. More...

#include "mirp_bin/cmdline.hpp"
#include <algorithm>
#include <stdexcept>
#include <sstream>
Include dependency graph for cmdline.cpp:

Namespaces

 mirp
 

Functions

bool mirp::cmdline_has_arg (const std::vector< std::string > &cmdline, const std::string &arg)
 Check to see if the given command line has an argument. More...
 
bool mirp::cmdline_get_switch (std::vector< std::string > &cmdline, const std::string &arg)
 See if the command line has a switch. More...
 
std::string mirp::cmdline_get_arg_str (std::vector< std::string > &cmdline, const std::string &arg)
 Obtain the value of an argument from the command line as a string. More...
 
std::string mirp::cmdline_get_arg_str (std::vector< std::string > &cmdline, const std::string &arg, const std::string &def)
 Obtain the value of an argument from the command line as a string, with a default. More...
 
long mirp::cmdline_get_arg_long (std::vector< std::string > &cmdline, const std::string &arg)
 Obtain the value of an argument from the command line as a long integer. More...
 
long mirp::cmdline_get_arg_long (std::vector< std::string > &cmdline, const std::string &arg, long def)
 Obtain the value of an argument from the command line as a long integer, with a default. More...
 
std::vector< std::string > mirp::convert_cmdline (int argc, char **argv)
 Convert the command line passed to a program into a vector of strings. More...
 

Detailed Description

Functions for parsing the command line given to a program.