Code forensics  0.1
Generate historical information about code changes
cli_options.cpp File Reference
#include "cli_options.hpp"
#include <boost/lexical_cast.hpp>
#include <locale>
#include <cstdlib>
Include dependency graph for cli_options.cpp:

Namespaces

 boost
 

Functions

template<>
bool boost::lexical_cast< bool, Str > (const Str &arg)
 
template<>
Str boost::lexical_cast< Str, bool > (const bool &b)
 
template<>
BoolOption boost::lexical_cast< BoolOption, Str > (CR< Str > arg)
 
template<>
Str boost::lexical_cast< Str, BoolOption > (CR< BoolOption > b)
 
void print_variables_map (CR< any_visitor > visitor, std::ostream &out, const po::variables_map vm)
 
template<typename T >
cast_env_or (CR< Str > env, CR< T > or_value)
 
template<typename T >
map_env (CR< Str > env, Func< T(CR< Str >)> callback)
 
po::variables_map parse_cmdline (int argc, const char **argv)
 
void validate (boost::any &v, const Vec< Str > &xs, BoolOption *opt, long)
 

Function Documentation

◆ cast_env_or()

template<typename T >
T cast_env_or ( CR< Str >  env,
CR< T >  or_value 
)

◆ map_env()

template<typename T >
T map_env ( CR< Str >  env,
Func< T(CR< Str >)>  callback 
)

◆ parse_cmdline()

po::variables_map parse_cmdline ( int  argc,
const char **  argv 
)

◆ print_variables_map()

void print_variables_map ( CR< any_visitor visitor,
std::ostream &  out,
const po::variables_map  vm 
)

◆ validate()

void validate ( boost::any &  v,
const Vec< Str > &  xs,
BoolOption opt,
long   
)