Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7241 in orxonox.OLD for branches/preferences/src/lib/parser


Ignore:
Timestamp:
Mar 24, 2006, 10:52:18 AM (19 years ago)
Author:
rennerc
Message:

added commandline parser

Location:
branches/preferences/src/lib/parser
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/lib/parser/Makefile.am

    r7234 r7241  
    11SUBDIRS = \
    22          tinyxml \
    3                                 ini_parser \
    4                                 preferences
     3          ini_parser \
     4          preferences \
     5          cmdline_parser
    56
    67
  • branches/preferences/src/lib/parser/preferences/cmd_line_prefs_reader.cc

    r7234 r7241  
    2323 * standard constructor
    2424*/
    25 CmdLinePrefsReader::CmdLinePrefsReader(int argc, char** argv)
     25CmdLinePrefsReader::CmdLinePrefsReader( )
    2626{
    2727
     
    3636}
    3737
     38bool CmdLinePrefsReader::callBack( ArgTableEntry entry, void * data, const std::string & arg, const std::vector< std::string > & argArgs )
     39{
     40}
    3841
     42bool CmdLinePrefsReader::parse( int argc, char ** argv )
     43{
     44  CmdLineParser parser;
     45}
     46
     47
  • branches/preferences/src/lib/parser/preferences/cmd_line_prefs_reader.h

    r7234 r7241  
    1010#include "debug.h"
    1111
     12#include "src/lib/parser/cmdline_parser/cmdline_parser.h"
     13
    1214//! A class for reading commandline arguments into Preferences
    13 class CmdLinePrefsReader {
     15class CmdLinePrefsReader
     16{
    1417
    1518 public:
    16    CmdLinePrefsReader(int argc, char** argv);
     19   CmdLinePrefsReader();
    1720   virtual ~CmdLinePrefsReader();
    1821
     22    bool parse(int argc, char** argv);
     23   
     24  private:
     25    static bool callBack( ArgTableEntry entry, void* data, const std::string & arg, const std::vector<std::string> & argArgs );
    1926
    2027};
Note: See TracChangeset for help on using the changeset viewer.