CommandLineHelpers.h File Reference

Go to the source code of this file.

Namespaces

 helpers
 

Functions

bool helpers::removeFromCommandline (int &argc, char *argv[], std::string varName, int nArgs)
 May be used to hide arguments from argc and argv. More...
 
bool helpers::readFromCommandLine (int argc, char *argv[], std::string varName)
 Returns true if command line arguments contain varName, false else. More...
 
template<typename T >
helpers::readFromCommandLine (int argc, char *argv[], std::string varName, T value)
 
template<typename T , size_t n>
std::array< T, nhelpers::readArrayFromCommandLine (int argc, char *argv[], std::string varName, std::array< T, n > value)
 
template<typename T >
std::vector< T > helpers::readVectorFromCommandLine (int argc, char *argv[], std::string varName, size_t n, std::vector< T > values)
 
template<>
std::string helpers::readFromCommandLine< std::string > (int argc, char *argv[], std::string varName, std::string value)