//=-- ServerSettings.h - Manages global server settings -----------------------=
//
//  This class uses the ConfigFile class to load the server global configuration
//  file...  It provides easy access to the fields that are present in the 
//  Server Configuration file, by stuffing the values into the global MSOptions
//  instance.  Because the Server Configuration file is not required for use of
//  MagicStats, it also avoids printing of error messages.
//
//=----------------------------------------------------------------------------=
//  This file is copyright (c) 1997-2000 Chris Lattner
//=----------------------------------------------------------------------------=

#ifndef SERVERSETTINGS_H
#define SERVERSETTINGS_H

class MSFilename;
class String;
class CSString;
class VTExp;
template <class Key, class Value> class Table;

class ServerSettings {
public :
  ServerSettings() { }
  int Load(const MSFilename &Filename);

private :
  void ProcessServerSettings(Table<CSString, VTExp*> &Stmts);
  void ProcessUserSettings(Table<CSString, VTExp*> &Stmts);
  void ProcessSecuritySettings(Table<CSString, VTExp*> &Stmts);
};

#endif
