File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919#include < iterator>
2020
2121options::options (int argc, const char * const argv[])
22- :_options (argv + 1 , argv + argc)
23- ,_which_test (" " )
24- ,_quiet(_options .count(" -q" ) != 0)
25- ,_help(_options .count(" -h" ) != 0 || _options .count(" --help" ))
22+ :mOptions (argv + 1 , argv + argc)
23+ ,mWhichTest (" " )
24+ ,mQuiet( mOptions .count(" -q" ) != 0)
25+ ,mHelp( mOptions .count(" -h" ) != 0 || mOptions .count(" --help" ))
2626{
27- _options .erase (" -q" );
28- _options .erase (" -h" );
29- _options .erase (" --help" );
30- if (! _options .empty ()) {
31- _which_test = *_options .rbegin ();
27+ mOptions .erase (" -q" );
28+ mOptions .erase (" -h" );
29+ mOptions .erase (" --help" );
30+ if (! mOptions .empty ()) {
31+ mWhichTest = *mOptions .rbegin ();
3232 }
3333}
3434
3535bool options::quiet () const
3636{
37- return _quiet ;
37+ return mQuiet ;
3838}
3939
4040bool options::help () const
4141{
42- return _help ;
42+ return mHelp ;
4343}
4444
4545const std::string& options::which_test () const
4646{
47- return _which_test ;
47+ return mWhichTest ;
4848}
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ class options {
4242 const options& operator =(const options& non_assign);
4343
4444private:
45- std::set<std::string> _options ;
46- std::string _which_test ;
47- const bool _quiet ;
48- const bool _help ;
45+ std::set<std::string> mOptions ;
46+ std::string mWhichTest ;
47+ const bool mQuiet ;
48+ const bool mHelp ;
4949};
5050
5151#endif
You can’t perform that action at this time.
0 commit comments