Changeset 4767 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jul 2, 2005, 11:57:47 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/ini_parser.cc
r4597 r4767 69 69 \return zero on success or -1 if the section could not be found 70 70 */ 71 int IniParser::getSection( c har* section)71 int IniParser::getSection( const char* section) 72 72 { 73 73 bInSection = false; … … 108 108 \return zero if the buffers have been filled with data or -1 if there are no entries left in the current section 109 109 */ 110 int IniParser::nextVar( c har* name,char* value)110 int IniParser::nextVar( const char* name, const char* value) 111 111 { 112 112 if( stream == NULL) … … 157 157 lead to unwanted behaviour. 158 158 */ 159 c har* IniParser::getVar(const char* name, char* section,char* defvalue = "")159 const char* IniParser::getVar(const char* name, const char* section, const char* defvalue = "") 160 160 { 161 161 strcpy (internbuf, defvalue); -
orxonox/trunk/src/lib/util/ini_parser.h
r4597 r4767 26 26 ~IniParser (); 27 27 28 c har* getVar(const char* name, char* section,char* defvalue);28 const char* getVar(const char* name, const char* section, const char* defvalue); 29 29 int openFile(const char* name); 30 int getSection( c har* section);31 int nextVar( c har* name,char* value);30 int getSection( const char* section); 31 int nextVar( const char* name, const char* value); 32 32 33 33 private:
Note: See TracChangeset
for help on using the changeset viewer.