Back to Top page.

EGGetOpt.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003 $Id: EGGetOpt.h,v 1.2 2002/10/26 08:50:18 motegi Exp $
00004 Copyright (C) 2002 Higuchi Lab. All rights reserved.
00005 
00006 *****************************************************************************/
00007 #ifndef INCLUDE__EGGETOPT_H__FILE
00008 #define INCLUDE__EGGETOPT_H__FILE
00009 
00013 class EGGetOpt {
00014 public:
00015   EGGetOpt(int argc, char** argv);
00016   unsigned GetGenerations() const { return gen_;  }
00017   bool IsLoad() const             { return load_; }
00018   unsigned GetSeed() const        { return seed_; }
00019   const char* GetFileName() const { return fileName_; }
00020 
00021   void PrintVersion();
00022   void PrintHelp(char*);
00023 
00024 private:
00025   unsigned gen_;
00026   bool load_;
00027   unsigned seed_;
00028   char* fileName_;
00029 };
00030 
00031 #endif  // INCLUDE__EGGETOPT_H__FILE