00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef TESTHELPER_TESTOPTION_H
00025 #define TESTHELPER_TESTOPTION_H
00026
00027 #include "common/cmdline.hpp"
00028
00029 #include <string>
00030 #include <iostream>
00031 #include <boost/program_options.hpp>
00032 #include <boost/utility.hpp>
00033
00034
00035
00036 namespace test
00037 {
00038 using std::string;
00039 using std::ostream;
00040
00041
00042
00053 class TestOption : private boost::noncopyable
00054 {
00055 public:
00056 TestOption (util::Cmdline& cmdline);
00057 const string getTestgroup ();
00058 const string getTestID ();
00059 const bool getDescribe ();
00060
00061 private:
00062 boost::program_options::options_description syntax;
00063 boost::program_options::variables_map parameters;
00064
00065 friend ostream& operator<< (ostream&, const TestOption&);
00066 };
00067
00068
00071 ostream& operator<< (ostream& os, const TestOption& to);
00072
00073
00074 }
00075 #endif