summaryrefslogtreecommitdiffstats
path: root/lanbrowsing/lisa/configfile.h
blob: 1879e3b94f63dad6f9f25d33ec20eee70182aae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*    configfile.h
 *
 *    Copyright (c) 1998,2000 Alexander Neundorf
 *    [email protected]
 *
 *    You may distribute under the terms of the GNU General Public
 *    License as specified in the COPYING file.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 */

#ifndef CONFIGFILE_H
#define CONFIGFILE_H

#include <map>

#include "mystring.h"

class Config
{
   public:
      Config(const MyString& name);
      MyString getEntry(const char *key, const char* defaultValue);
      int getEntry(const char *key, int defaultValue);
   protected:
      std::map<MyString, MyString> m_entries;
};

#endif