Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 11, 2005, 12:55:48 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setClassID implemented in all files

File:
1 edited

Legend:

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

    r4482 r4597  
    22    \file ini_parser.h
    33    \brief A small ini file parser
    4    
     4
    55    Can be used to find a defined [Section] in an ini file and get the VarName=Value entries
    66*/
     
    1212#include <string.h>
    1313#include <stdlib.h>
     14#include "base_object.h"
    1415
    1516#define PARSELINELENGHT     512       //!< how many chars to read at once
     
    1718//! ini-file parser
    1819/**
    19         This class can be used to load an initializer file and parse it's contents for variablename=value pairs.
     20        This class can be used to load an initializer file and parse it's contents for variablename=value pairs.
    2021*/
    21 class IniParser {
     22class IniParser : public BaseObject
     23{
    2224 public:
    2325  IniParser (const char* filename);
    2426  ~IniParser ();
    25  
     27
    2628  char* getVar(const char* name, char* section, char* defvalue);
    2729  int openFile(const char* name);
     
    3335  bool          bInSection;                   //!< if the requested parameter is in the section.
    3436  char          internbuf[PARSELINELENGHT];   //!< a buffer
    35        
     37
    3638
    3739};
Note: See TracChangeset for help on using the changeset viewer.