Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

commandline_parser.h

Go to the documentation of this file.
      00001 //----------------------------------------------------------------------------------------
      00011 // RCS-ID:      $Id: commandline_parser.h,v 1.2 2002/09/10 18:07:56 robertoconnor Exp $
      00012 //----------------------------------------------------------------------------------------
      00013 
      00014 //----------------------------------------------------------------------------------------
      00015 // Begin single inclusion of this .h file condition
      00016 //----------------------------------------------------------------------------------------
      00017 
      00018 #ifndef _COMMANDLINE_PARSER_H__
      00019 #define _COMMANDLINE_PARSER_H_
      00020 
      00021 //----------------------------------------------------------------------------------------
      00022 // GCC interface
      00023 //----------------------------------------------------------------------------------------
      00024 
      00025 #if defined(__GNUG__) && ! defined(__APPLE__)
      00026     #pragma interface "commandline_parser.h"
      00027 #endif
      00028 
      00029 //----------------------------------------------------------------------------------------
      00030 // Shared defines
      00031 //----------------------------------------------------------------------------------------
      00032 
      00033 #include "plucker_defines.h"
      00034 
      00035 //----------------------------------------------------------------------------------------
      00036 // Headers
      00037 //----------------------------------------------------------------------------------------
      00038 
      00039 #include "wx/cmdline.h"             // wxCmdLineParser
      00040 
      00041 //----------------------------------------------------------------------------------------
      00042 // Class definition: commandline_parser
      00043 //----------------------------------------------------------------------------------------
      00044 
      00046 class commandline_parser : wxCmdLineParser
      00047 {
      00048 
      00049 public:
      00050     
      00052     commandline_parser();
      00053 
      00054     // NOTE: NO destructor in this class, as wxCmdLineParser destructor is not virtual. 
      00055 
      00057     static commandline_parser* get();
      00058     
      00060 
      00063     static commandline_parser* set( commandline_parser* desired_commandline_parser );    
00065 
00070     bool    do_commandline( int argc, char** argv );
00071                         
00072 private:
00073 
00074     // Singleton instance of plucker_controller
00075     static commandline_parser* ms_instance;   
00076 
00078     void    prepend_extra_help_notice();
00079 
00081 
00084     void    parse_parameters();
00085     
00087 
00090     void    send_inform_message( const wxString& message );   
00091     
00092 };
00093 
00094 //----------------------------------------------------------------------------------------
00095 // End single inclusion of this .h file condition
00096 //----------------------------------------------------------------------------------------
00097 
00098 #endif  // _COMMANDLINE_PARSER_H_
00099