Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2066 in orxonox.OLD for orxonox/branches/chris/src/ini_parser.cc


Ignore:
Timestamp:
Jul 3, 2004, 5:36:35 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented CommandNode (Keyboard handling), created some functions to convert key names to identifyers and vice versa, ensured it compiles (when compiled spereately) added a header to hold global message structures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/ini_parser.cc

    r2065 r2066  
    1717#include "ini_parser.h"
    1818
    19 #include <stdio.h>
    20 #include <strings.h>
    21 
    2219using namespace std;
    2320
     
    2623        stream = NULL;
    2724        bInSection = false;
    28         openFile (filename);
     25        open_file (filename);
    2926}
    3027
     
    3431}
    3532
    36 int IniParser::openFile( char* filename)
     33int IniParser::open_file( char* filename)
    3734{
    3835        if( filename == NULL) return -1;
     
    4744}
    4845
    49 int IniParser::getSection( char* section)
     46int IniParser::get_section( char* section)
    5047{
    5148        bInSection = false;
     
    8077}
    8178
    82 int IniParser::nextVar( char* name, char* value)
     79int IniParser::next_var( char* name, char* value)
    8380{
    8481        if( stream == NULL)
     
    114111}
    115112
    116 char* IniParser::getVar( char* name, char* section, char* defvalue = "")
     113char* IniParser::get_var( char* name, char* section, char* defvalue = "")
    117114{
    118115        strcpy (internbuf, defvalue);
    119         if( getSection (section) == -1) return internbuf;
     116        if( get_section (section) == -1) return internbuf;
    120117       
    121118        char namebuf[PARSELINELENGHT];
    122119        char valuebuf[PARSELINELENGHT];
    123120       
    124         while( nextVar (namebuf, valuebuf) != -1)
     121        while( next_var (namebuf, valuebuf) != -1)
    125122        {
    126123                if( !strcmp (name, namebuf))
Note: See TracChangeset for help on using the changeset viewer.