// Copyright (c) 2011 Ole Weidner (oweidner@cct.lsu.edu) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef SAGA_PERF_TESTS_ARG_CHECKER #define SAGA_PERF_TESTS_ARG_CHECKER 1 #include #include namespace saga_perf_tests { class arg_checker { private: std::vector _arg_vector; std::string _test_desc; std::string _exe_name; void _print_info() { std::cout << std::endl << "This executable is part of the 'SAGA Performance Tests'." << std::endl; std::cout << "Description: " << _test_desc << std::endl << std::endl; std::cout << "Usage: " << _exe_name << " " << std::endl << std::endl; } public: //////////////////////////////////////////////////////////////// // arg_checker(std::string const & test_desc, int argc, char * argv[] ) { for(int i=1; i