FACT++  1.0
bool Configuration::DoParse ( int  argc,
const char **  argv,
const std::function< void()> &  func = std::function<void()>() 
)
Examples:
chatserv.cc.

Definition at line 1258 of file Configuration.cc.

References HasHelp(), HasPrint(), HasVersion(), Parse(), and PrintHelp().

Referenced by GetOptions(), and main().

1259 {
1260  try
1261  {
1262  Parse(argc, argv, PrintHelp);
1263  }
1264 #if BOOST_VERSION > 104000
1265  catch (po::multiple_occurrences &e)
1266  {
1267  cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl;
1268  return false;
1269  }
1270 #endif
1271  catch (exception& e)
1272  {
1273  cerr << "Program options invalid due to: " << e.what() << endl;
1274  return false;
1275  }
1276 
1277  return !HasVersion() && !HasPrint() && !HasHelp();
1278 }
void PrintHelp()
Definition: fact.cc:30
const po::variables_map & Parse(int argc, const char **argv, const std::function< void()> &func=std::function< void()>())

+ Here is the call graph for this function:

+ Here is the caller graph for this function: