libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
crn::Config Class Reference

Global configuration utility class. More...

#include <CRNConfig.h>

Public Member Functions

 ~Config ()
 Destructor. More...
 

Static Public Member Functions

static bool Save ()
 Saves to user's local config. More...
 
static void SetTopDataPath (const Path &dir)
 Sets the top directory name. More...
 
static Path GetTopDataPath ()
 Gets the top directory name. More...
 
static crn::Path GetLocalePath ()
 Gets the translation files path. More...
 
static void SetLocalePath (const crn::Path &dir)
 Sets the translation files path. More...
 
static crn::Path GetStaticDataPath ()
 Gets the data directory name. More...
 
static void SetStaticDataPath (const crn::Path &dir)
 Sets the data directory name. More...
 

Detailed Description

Global configuration utility class.

Global configuration utility class

Author
Yann LEYDIER
Version
0.1
Date
May 2009

Definition at line 38 of file CRNConfig.h.

Constructor & Destructor Documentation

Config::~Config ( )

Destructor.

Definition at line 97 of file CRNConfig.cpp.

Member Function Documentation

Path Config::GetLocalePath ( )
static

Gets the translation files path.

Gets the translation files path

Returns
the translation files directory

Definition at line 152 of file CRNConfig.cpp.

Path Config::GetStaticDataPath ( )
static

Gets the data directory name.

Gets the data directory name

Returns
the data files directory

Definition at line 168 of file CRNConfig.cpp.

Path Config::GetTopDataPath ( )
static

Gets the top directory name.

Gets the top directory name

Returns
the top directory

Definition at line 144 of file CRNConfig.cpp.

bool Config::Save ( )
static

Saves to user's local config.

Definition at line 127 of file CRNConfig.cpp.

void Config::SetLocalePath ( const crn::Path dir)
static

Sets the translation files path.

Sets the translation files path

Parameters
[in]dirthe new translation files directory

Definition at line 160 of file CRNConfig.cpp.

void Config::SetStaticDataPath ( const crn::Path dir)
static

Sets the data directory name.

Sets the data directory name

Parameters
[in]dirthe new data files directory

Definition at line 176 of file CRNConfig.cpp.

void Config::SetTopDataPath ( const Path dir)
static

Sets the top directory name.

Sets the top directory name

Parameters
[in]dirthe new top directory

Definition at line 136 of file CRNConfig.cpp.


The documentation for this class was generated from the following files: