Adonthell  0.4
prefs.h File Reference

Adonthell's configuration. More...

#include <string>
#include <fstream>
#include "types.h"
Include dependency graph for prefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  config
 This class contains the engine's configuration read either from the config file or from the command line. More...
 

Enumerations

enum  {
  PREFS_UNKNOWN = 0, PREFS_SCREEN_MODE = 1, PREFS_LANGUAGE = 2, PREFS_FONT = 3,
  PREFS_QUICK_LOAD = 4, PREFS_AUDIO_CHANNELS = 5, PREFS_AUDIO_RESOLUTION = 6, PREFS_AUDIO_SAMPLE_RATE = 7,
  PREFS_AUDIO_VOLUME = 8, PREFS_VERSION = 9, PREFS_NUM = 10, PREFS_STR = 11,
  PREFS_DISPLAY = 12
}
 Returncodes of the scanner for the different entries of the configuration file. More...
 

Functions

int parse_adonthellrc (int &, string &)
 Start the lexical scanner to parse the config file, usually fount at ~/.adonthell/adonthellrc. More...
 

Variables

FILE * prefsin
 The config file opened by the lexical scanner. More...
 

Detailed Description

Adonthell's configuration.

Author
Kai Sterker

Definition in file prefs.h.

Enumeration Type Documentation

§ anonymous enum

anonymous enum

Returncodes of the scanner for the different entries of the configuration file.

Definition at line 51 of file prefs.h.

Function Documentation

§ parse_adonthellrc()

int parse_adonthellrc ( int &  ,
string &   
)

Start the lexical scanner to parse the config file, usually fount at ~/.adonthell/adonthellrc.

Variable Documentation

§ prefsin

FILE* prefsin

The config file opened by the lexical scanner.