From a77e41eee42b99282c05d268479ba5ebb11dc095 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Oct 2006 15:54:09 +0000 Subject: Rearranged the tests, now it's like the old style, which I like more for some reason. --- src/tests/param/param.cpp | 46 ---------------------------------------------- src/tests/param/param.h | 21 --------------------- 2 files changed, 67 deletions(-) delete mode 100644 src/tests/param/param.cpp delete mode 100644 src/tests/param/param.h (limited to 'src/tests/param') diff --git a/src/tests/param/param.cpp b/src/tests/param/param.cpp deleted file mode 100644 index a4d2824..0000000 --- a/src/tests/param/param.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "param.h" -#include - -Param::Param() -{ - addHelpBanner("param - A test of the libbu++ parameter systems\n" - "Enjoy with care and caution\n\nTest stuff:\n"); - addParam( "name", 's', mkproc( Param::printStuff ), &str, "Test a param param" ); - //addParam( "name", &str ); - addParam( "job", 'U', mkproc( Param::printStuff ), "Test a paramless param" ); - - addHelpBanner("\nInformational:\n"); - addParam( "help", mkproc( ParamProc::help ), "Help!" ); - - addHelpBanner("\nThanks for trying my test!\n\n"); -} - -Param::~Param() -{ -} - -int Param::printStuff( int argc, char *argv[] ) -{ - printf("------------%02d-------------\n", argc ); - for( int j = 0; j < argc; j++ ) - { - printf("%d: %s\n", j, argv[j] ); - } - printf("---------------------------\n" ); - printf("SETVAR===\"%s\"\n", str.c_str() ); - - return 1; -} - -int main( int argc, char *argv[] ) -{ - if( argc == 1 ) - { - printf("You have to enter some parameter, try '--help'\n\n"); - return 0; - } - - Param p; - p.process( argc, argv ); -} - diff --git a/src/tests/param/param.h b/src/tests/param/param.h deleted file mode 100644 index 2756b69..0000000 --- a/src/tests/param/param.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef PARAM_H -#define PARAM_H - -#include - -#include "paramproc.h" - -class Param : public ParamProc -{ -public: - Param(); - virtual ~Param(); - -private: - int printStuff( int argc, char *argv[] ); - - std::string str; - uint32_t uint32; -}; - -#endif -- cgit v1.2.3