Changeset 10372


Ignore:
Timestamp:
04/15/11 23:01:59 (14 years ago)
Author:
tbretz
Message:
Changed second argument in Parse to const as well as in all main functions.
Location:
trunk/FACT++/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r10330 r10372  
    258258 - An example can be found in \ref argv.cc
    259259
    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
    261264
    262265*/
     
    776779//!    - proper handling and error messages if files not available
    777780//
    778 const po::variables_map &Configuration::Parse(int argc, char **argv)
     781const po::variables_map &Configuration::Parse(int argc, const char **argv)
    779782{
    780783    const po::positional_options_description &opt_positional = fArgumentPositions;
     
    803806    // ------------------------ (2) --------------------------
    804807
    805     po::command_line_parser parser(argc, argv);
     808    po::command_line_parser parser(argc, const_cast<char**>(argv));
    806809    parser.options(opt_commandline);
    807810    parser.positional(opt_positional);
  • trunk/FACT++/src/Configuration.h

    r10296 r10372  
    100100
    101101    // Process command line arguments
    102     const po::variables_map &Parse(int argc, char **argv);
     102    const po::variables_map &Parse(int argc, const char **argv);
    103103
    104104    bool HasVersion() const
  • trunk/FACT++/src/argv.cc

    r10230 r10372  
    135135
    136136
    137 int main(int argc, char **argv)
     137int main(int argc, const char **argv)
    138138{
    139139    int opt;
  • trunk/FACT++/src/dclient5.cc

    r10347 r10372  
    598598}
    599599
    600 int main(int argc, char* argv[])
     600int main(int argc, const char* argv[])
    601601{
    602602    Configuration conf(argv[0]);
  • trunk/FACT++/src/test3.cc

    r10347 r10372  
    11#include <boost/regex.hpp>
    22#include <boost/filesystem.hpp>
    3 #include <readline/readline.h>
    43
    5 #include "tools.h"
    6 #include "Time.h"
    7 #include "StateMachineDim.h"
    8 #include "MessageDim.h"
    94#include "Shell.h"
    10 #include "ServiceList.h"
    115#include "Configuration.h"
     6#include "RemoteControl.h"
    127
    138using namespace std;
    14 
    15 #include "RemoteControl.h"
    169
    1710template <class T>
     
    137130}
    138131
    139 int main(int argc, char *argv[])
     132int main(int argc, const char *argv[])
    140133{
    141134    Configuration conf(argv[0]);
Note: See TracChangeset for help on using the changeset viewer.