/*----------------------------------------------------- Header for Sample for command line options This class represents the command line for the AnagramGen application. Copyright Fred Smith 2006 All rights reserved Generated by aargh 1.2 Sat Mar 18 20:30:38 2006 -----------------------------------------------------*/ #ifndef SAMPLE_OPTS_H_GUARD #define SAMPLE_OPTS_H_GUARD #include #include class Sample { public : Sample() { initialize(); populated = false; }; ~Sample() {} int get_sample_opts( int argc, char * argv[] ); int new_argc() const { return new_argc_; } char ** new_argv() const { return new_argv_; } bool sample_bool() const { return sample_bool_; } const std::vector< std::string > & sample_dates() const { return sample_dates_; } bool sample_dates_found() const { return sample_dates_found_; } const std::string & host() const { return host_; } bool host_found() const { return host_found_; } unsigned long sample_int() const { return sample_int_; } bool sample_int_found() const { return sample_int_found_; } const std::vector< unsigned long > & multiple_ints() const { return multiple_ints_; } bool multiple_ints_found() const { return multiple_ints_found_; } unsigned long universe() const { return universe_; } bool universe_found() const { return universe_found_; } private : void initialize(); bool populated; int new_argc_; char ** new_argv_; bool sample_bool_; std::vector< std::string > sample_dates_; bool sample_dates_found_; std::string host_; bool host_found_; unsigned long sample_int_; bool sample_int_found_; std::vector< unsigned long > multiple_ints_; bool multiple_ints_found_; unsigned long universe_; bool universe_found_; }; extern "C" int val_date( const char * arg ); #endif