Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4028 in orxonox.OLD for orxonox/trunk/src/lib/util


Ignore:
Timestamp:
May 3, 2005, 10:47:07 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: gui is now built inside of src

Location:
orxonox/trunk/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/ini_parser.cc

    r3484 r4028  
    2323        \param filename: the path and name of the file to parse
    2424*/
    25 IniParser::IniParser (char* filename)
     25IniParser::IniParser (const char* filename)
    2626{
    2727  stream = NULL;
     
    4343   \return zero on success or -1 if an error occured;
    4444*/
    45 int IniParser::openFile( char* filename)
     45int IniParser::openFile(const char* filename)
    4646{
    4747  if( filename == NULL) return -1;
     
    144144   lead to unwanted behaviour.
    145145*/
    146 char* IniParser::getVar( char* name, char* section, char* defvalue = "")
     146char* IniParser::getVar(const char* name, char* section, char* defvalue = "")
    147147{
    148148  strcpy (internbuf, defvalue);
  • orxonox/trunk/src/lib/util/ini_parser.h

    r3484 r4028  
    2626       
    2727 public:
    28   IniParser (char* filename);
     28  IniParser (const char* filename);
    2929  ~IniParser ();
    3030 
    31   char* getVar( char* name, char* section, char* defvalue);
    32         int openFile( char* name);
     31  char* getVar(const char* name, char* section, char* defvalue);
     32  int openFile(const char* name);
    3333  int getSection( char* section);
    3434  int nextVar( char* name, char* value);
Note: See TracChangeset for help on using the changeset viewer.