Changeset 5933 in orxonox.OLD for trunk/src/lib/util/ini_parser.h
- Timestamp:
- Dec 6, 2005, 12:33:18 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/ini_parser.h
r5405 r5933 11 11 #define PARSELINELENGHT 512 //!< how many chars to read at once 12 12 #ifndef NULL 13 #define NULL 0x0//!< NULL13 #define NULL 0x0 //!< NULL 14 14 #endif 15 15 16 // FORWARD DECLARATION // 17 template<class T> class tList; 16 #include <list> 18 17 19 18 //! ini-file parser … … 35 34 { 36 35 char* name; //!< name of a given section 37 tList<IniEntry>*entries; //!< a list of entries for this section36 std::list<IniEntry> entries; //!< a list of entries for this section 38 37 }; 39 38 //////////////////////////////////// … … 53 52 54 53 /** @returns true if the file is opened, false otherwise*/ 55 bool isOpen() const { return ( sections != NULL)?true:false; };54 bool isOpen() const { return (this->fileName != NULL)? true : false; }; 56 55 /** @returns the fileName we have opened. */ 57 56 const char* getFileName() const { return this->fileName; }; … … 77 76 78 77 private: 79 char* fileName; //!< The name of the File that was parsed.80 tList<IniSection>*sections; //!< a list of all stored Sections of the Parser81 IniSection*currentSection; //!< the current selected Section82 IniEntry*currentEntry; //!< the current selected entry (in currentSection)78 char* fileName; //!< The name of the File that was parsed. 79 std::list<IniSection> sections; //!< a list of all stored Sections of the Parser 80 std::list<IniSection>::iterator currentSection; //!< the current selected Section 81 std::list<IniEntry>::iterator currentEntry; //!< the current selected entry (in currentSection) 83 82 }; 84 83
Note: See TracChangeset
for help on using the changeset viewer.