Changeset 10372
- Timestamp:
- 04/15/11 23:01:59 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.cc
r10330 r10372 258 258 - An example can be found in \ref argv.cc 259 259 260 @todo Maybe we should remove the necessity to propagate argv[0] in the constructor? 260 @todo 261 262 - Maybe we should remove the necessity to propagate argv[0] in the constructor? 263 - Add an option to the constructor to switch of database/file access 261 264 262 265 */ … … 776 779 //! - proper handling and error messages if files not available 777 780 // 778 const po::variables_map &Configuration::Parse(int argc, c har **argv)781 const po::variables_map &Configuration::Parse(int argc, const char **argv) 779 782 { 780 783 const po::positional_options_description &opt_positional = fArgumentPositions; … … 803 806 // ------------------------ (2) -------------------------- 804 807 805 po::command_line_parser parser(argc, argv);808 po::command_line_parser parser(argc, const_cast<char**>(argv)); 806 809 parser.options(opt_commandline); 807 810 parser.positional(opt_positional); -
trunk/FACT++/src/Configuration.h
r10296 r10372 100 100 101 101 // Process command line arguments 102 const po::variables_map &Parse(int argc, c har **argv);102 const po::variables_map &Parse(int argc, const char **argv); 103 103 104 104 bool HasVersion() const -
trunk/FACT++/src/argv.cc
r10230 r10372 135 135 136 136 137 int main(int argc, c har **argv)137 int main(int argc, const char **argv) 138 138 { 139 139 int opt; -
trunk/FACT++/src/dclient5.cc
r10347 r10372 598 598 } 599 599 600 int main(int argc, c har* argv[])600 int main(int argc, const char* argv[]) 601 601 { 602 602 Configuration conf(argv[0]); -
trunk/FACT++/src/test3.cc
r10347 r10372 1 1 #include <boost/regex.hpp> 2 2 #include <boost/filesystem.hpp> 3 #include <readline/readline.h>4 3 5 #include "tools.h"6 #include "Time.h"7 #include "StateMachineDim.h"8 #include "MessageDim.h"9 4 #include "Shell.h" 10 #include "ServiceList.h"11 5 #include "Configuration.h" 6 #include "RemoteControl.h" 12 7 13 8 using namespace std; 14 15 #include "RemoteControl.h"16 9 17 10 template <class T> … … 137 130 } 138 131 139 int main(int argc, c har *argv[])132 int main(int argc, const char *argv[]) 140 133 { 141 134 Configuration conf(argv[0]);
Note:
See TracChangeset
for help on using the changeset viewer.