Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5933 in orxonox.OLD for trunk/src/lib/util/ini_parser.h


Ignore:
Timestamp:
Dec 6, 2005, 12:33:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: sync (not running)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/ini_parser.h

    r5405 r5933  
    1111#define PARSELINELENGHT     512       //!< how many chars to read at once
    1212#ifndef NULL
    13 #define NULL 0x0                      //!< NULL
     13 #define NULL 0x0                     //!< NULL
    1414#endif
    1515
    16 // FORWARD DECLARATION //
    17 template<class T> class tList;
     16#include <list>
    1817
    1918//! ini-file parser
     
    3534    {
    3635      char*               name;    //!< name of a given section
    37       tList<IniEntry>*    entries; //!< a list of entries for this section
     36      std::list<IniEntry> entries; //!< a list of entries for this section
    3837    };
    3938    ////////////////////////////////////
     
    5352
    5453    /** @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; };
    5655    /** @returns the fileName we have opened. */
    5756    const char* getFileName() const { return this->fileName; };
     
    7776
    7877  private:
    79     char*                 fileName;        //!< The name of the File that was parsed.
    80     tList<IniSection>*    sections;        //!< a list of all stored Sections of the Parser
    81     IniSection*           currentSection;  //!< the current selected Section
    82     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)
    8382};
    8483
Note: See TracChangeset for help on using the changeset viewer.