Changeset 4028 in orxonox.OLD for orxonox/trunk/src/lib/util
- Timestamp:
- May 3, 2005, 10:47:07 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/ini_parser.cc
r3484 r4028 23 23 \param filename: the path and name of the file to parse 24 24 */ 25 IniParser::IniParser (c har* filename)25 IniParser::IniParser (const char* filename) 26 26 { 27 27 stream = NULL; … … 43 43 \return zero on success or -1 if an error occured; 44 44 */ 45 int IniParser::openFile( char* filename)45 int IniParser::openFile(const char* filename) 46 46 { 47 47 if( filename == NULL) return -1; … … 144 144 lead to unwanted behaviour. 145 145 */ 146 char* IniParser::getVar( char* name, char* section, char* defvalue = "")146 char* IniParser::getVar(const char* name, char* section, char* defvalue = "") 147 147 { 148 148 strcpy (internbuf, defvalue); -
orxonox/trunk/src/lib/util/ini_parser.h
r3484 r4028 26 26 27 27 public: 28 IniParser (c har* filename);28 IniParser (const char* filename); 29 29 ~IniParser (); 30 30 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); 33 33 int getSection( char* section); 34 34 int nextVar( char* name, char* value);
Note: See TracChangeset
for help on using the changeset viewer.