summaryrefslogtreecommitdiff
path: root/include/ConfigFile.h
blob: 11434bdf51ae53add85d40daf94870ba30f81dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __CONFIGFILE_H__
#define __CONFIGFILE_H__

#include <Exceptions.h>
#include <Handle.h>
#include <map>

typedef std::map<String, String> ConfigSectionContents;
typedef std::map<String, ConfigSectionContents> ConfigSection;

class ConfigFile : public Base {
  public:
      ConfigFile(Handle *) throw (GeneralException);
    ConfigSectionContents & operator[](String);
  private:
    ConfigSection c;
};

#endif