- Timestamp:
- Aug 14, 2005, 5:43:02 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/ini_parser.cc
r5015 r5017 29 29 /** 30 30 * constructs an IniParser using a file 31 * @param file name: the path and name of the file to parse31 * @param fileName: the path and name of the file to parse 32 32 */ 33 33 IniParser::IniParser (const char* fileName) … … 88 88 /** 89 89 * opens another file to parse 90 * @param file name: path and name of the new file to parse90 * @param fileName: path and name of the new file to parse 91 91 * @return true on success false otherwise; 92 92 */ … … 317 317 } 318 318 319 /** 320 * output the whole tree in a nice and easy way. 321 */ 319 322 void IniParser::debug() const 320 323 { -
orxonox/trunk/src/lib/util/ini_parser.h
r5015 r5017 24 24 private: 25 25 //////////////////////////////////// 26 //! a struct for Entries in the Parser's File's Sections 26 27 struct IniEntry 27 28 { 28 char* name; 29 char* value; 29 char* name; //!< name of a given Entry 30 char* value; //!< value of a given Entry 30 31 }; 31 32 //! a struct for Sections in the Parser's file 32 33 struct IniSection 33 34 { 34 char* name; 35 tList<IniEntry>* entries; 35 char* name; //!< name of a given section 36 tList<IniEntry>* entries; //!< a list of entries for this section 36 37 }; 37 38 //////////////////////////////////// … … 69 70 70 71 private: 71 tList<IniSection>* sections; 72 IniSection* currentSection; 73 IniEntry* currentEntry; 72 tList<IniSection>* sections; //!< a list of all stored Sections of the Parser 73 IniSection* currentSection; //!< the current selected Section 74 IniEntry* currentEntry; //!< the current selected entry (in currentSection) 74 75 }; 75 76
Note: See TracChangeset
for help on using the changeset viewer.