5 #ifndef CNOID_BASE_OPTION_MANAGER_H
6 #define CNOID_BASE_OPTION_MANAGER_H
9 #include <cnoid/Signal>
10 #include <boost/program_options.hpp>
11 #include "exportdecl.h"
18 OptionManager& addOption(
const char* name,
const char* description);
19 OptionManager& addOption(
const char* name,
const boost::program_options::value_semantic* s);
20 OptionManager& addOption(
const char* name,
const boost::program_options::value_semantic* s,
const char* description);
27 SignalProxy<void(std::vector<std::string>& inputFiles)> sigInputFileOptionsParsed(
int phase = 0);
28 SignalProxy<void(boost::program_options::variables_map& variables)> sigOptionsParsed(
int phase = 0);
30 bool parseCommandLine1(
int argc,
char *argv[]);
31 void parseCommandLine2();