Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7241 in orxonox.OLD for branches


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

added commandline parser

Location:
branches/preferences
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/configure.ac

    r7235 r7241  
    646646                 src/lib/parser/tinyxml/Makefile
    647647                 src/lib/parser/ini_parser/Makefile
     648                 src/lib/parser/cmdline_parser/Makefile
    648649                 src/lib/parser/preferences/Makefile
    649650                 src/util/Makefile
  • branches/preferences/src/lib/BuildLibs.am

    r7236 r7241  
    1616                $(LIB_PREFIX)/parser/tinyxml/libtinyxml.a \
    1717                $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \
     18                $(LIB_PREFIX)/parser/cmdline_parser/libCmdLineParser.a \
    1819                $(LIB_PREFIX)/parser/preferences/libPrefsParser.a \
    1920                $(LIB_PREFIX)/shell/libORXshell.a \
  • 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};
  • branches/preferences/src/orxonox.cc

    r7236 r7241  
    403403int main(int argc, char** argv)
    404404{
    405   CmdLinePrefsReader prefs(argc, argv);
     405  CmdLinePrefsReader prefs;
     406  prefs.parse(argc, argv);
    406407
    407408  int i;
Note: See TracChangeset for help on using the changeset viewer.