Code forensics  0.1
Generate historical information about code changes
cli_options.hpp File Reference
#include <common.hpp>
#include "program_state.hpp"
#include <boost/program_options.hpp>
#include <boost/describe.hpp>
#include <boost/describe/enum_to_string.hpp>
#include <boost/describe/enum_from_string.hpp>
#include <boost/describe/operators.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/unordered_map.hpp>
#include <fstream>
Include dependency graph for cli_options.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  type_info_hash
 Has typeinfo information for type-implementation mapping. More...
 
struct  equal_ref
 Compare reference wrappers for equality. More...
 
struct  any_visitor
 boost::any visitor helper More...
 
class  EnumOption< E >
 enum More...
 
class  bad_lexical_cast
 
class  validation_error
 more informative validation error exception More...
 
class  BoolOption
 specify boolean true/false flags on the boost command line More...
 

Namespaces

 boost
 

Functions

template<IsDescribedEnum E>
boost::lexical_cast (CR< Str > in)
 lexical cast overload for 'described' enums More...
 
template<IsDescribedEnum E>
Str boost::lexical_cast (E in)
 Lexical cast overload for the 'described' enum values. More...
 
template<typename E >
void validate (boost::any &v, CR< Vec< Str >> xs, EnumOption< E > *opt, long)
 unparse input enum option into the stored value More...
 
po::variables_map parse_cmdline (int argc, const char **argv)
 
void print_variables_map (CR< any_visitor > visitor, std::ostream &out, const po::variables_map vm)
 

Function Documentation

◆ 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()

template<typename E >
void validate ( boost::any &  v,
CR< Vec< Str >>  xs,
EnumOption< E > *  opt,
long   
)

unparse input enum option into the stored value

parse enum-valued CLI option