Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

appconf.h File Reference

#include <iostream>
#include <stdlib.h>

Include dependency graph for appconf.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  BaseConfig
 abstract base class config. More...

class  FileConfig::ConfigEntry
class  FileConfig::ConfigGroup
class  BaseConfig::Enumerator
class  FileConfig

configuration options

#define TRUE   1
#define FALSE   0
#define APPCONF_USE_GETTEXT   0
 can we use gettext() for multi language support?

#define APPCONF_CASE_SENSITIVE   0
 shall we be case sensitive in parsing variable names?

#define APPCONF_PATH_SEPARATOR   '/'
 separates group and entry names.

#define APPCONF_IMMUTABLE_PREFIX   '!'
 introduces immutable entries.

#define APPCONF_STRBUFLEN   1024
 length for internal character array for expansion (e.g. for gcvt()).

#define APPCONF_WIN32_NATIVE   1
 should we use registry instead of configuration files under Win32?

typedef int Bool

Constructors and destructor

typedef class FileConfig AppConfig
 AppConfig is mapped on the class most appropriate for the target platform.


helper functions

char* ExpandEnvVars (const char *psz)


Define Documentation

#define APPCONF_CASE_SENSITIVE   0
 

shall we be case sensitive in parsing variable names?

Definition at line 135 of file appconf.h.

#define APPCONF_IMMUTABLE_PREFIX   '!'
 

introduces immutable entries.

Definition at line 145 of file appconf.h.

#define APPCONF_PATH_SEPARATOR   '/'
 

separates group and entry names.

Definition at line 140 of file appconf.h.

#define APPCONF_STRBUFLEN   1024
 

length for internal character array for expansion (e.g. for gcvt()).

Definition at line 150 of file appconf.h.

#define APPCONF_USE_GETTEXT   0
 

can we use gettext() for multi language support?

Definition at line 128 of file appconf.h.

#define APPCONF_WIN32_NATIVE   1
 

should we use registry instead of configuration files under Win32?

Definition at line 155 of file appconf.h.

#define FALSE   0
 

Definition at line 110 of file appconf.h.

#define TRUE   1
 

Definition at line 109 of file appconf.h.


Typedef Documentation

typedef class FileConfig AppConfig
 

AppConfig is mapped on the class most appropriate for the target platform.

Definition at line 734 of file appconf.h.

typedef int Bool
 

Definition at line 107 of file appconf.h.


Function Documentation

char* ExpandEnvVars ( const char * psz )
 

Replace environment variables ($SOMETHING) with their values. The format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric characters and '_' only. '$' must be escaped ('$') in order to be taken literally.

Parameters:
pointer   to the string possibly contianing $VAR and/or ${VAR}
Returns:
the resulting string, caller must 'delete []' it @memo Performs environment variable substitution.

Definition at line 181 of file appconf.cpp.


Generated at Wed Apr 4 19:54:05 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001