~verifydtapn-contributers/verifydtapn/trunk

« back to all changes in this revision

Viewing changes to src/Core/ArgsParser.hpp

  • Committer: Jiri Srba
  • Date: 2017-09-18 13:43:37 UTC
  • mfrom: (334.1.8 verifydtapn)
  • Revision ID: srba.jiri@gmail.com-20170918134337-fi97wtwg1i1689kt
merged in branch lp:~verifydtapn-contributers/verifydtapn/win-compile 
allowing to cross compile to windows (min mac version is 10.9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <map>
6
6
#include <string>
7
7
#include <iosfwd>
8
 
#include "boost/smart_ptr.hpp"
9
8
#include "VerificationOptions.hpp"
10
9
#include "boost/lexical_cast.hpp"
11
10
 
78
77
        };
79
78
 
80
79
        class ArgsParser {
81
 
                typedef std::vector< boost::shared_ptr<Switch> > parser_vec;
 
80
                typedef std::vector< Switch* > parser_vec;
82
81
        public:
83
82
                ArgsParser() : parsers(), version(3,2,0) { initialize(); };
84
 
                virtual ~ArgsParser() {};
 
83
                virtual ~ArgsParser() { for( auto p : parsers) delete p; };
85
84
 
86
85
                VerificationOptions parse(int argc, char* argv[]) const;
87
86
        private: