Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

appprefs.cpp File Reference

Common preferences for the application. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/file.h>
#include <wx/filename.h>
#include <wx/config.h>
#include <wx/fileconf.h>
#include <wx/tokenzr.h>
#include <wx/txtstrm.h>
#include "appprefs.hpp"
#include "comdefs.hpp"
#include "cmdlnopt.hpp"
#include "osdep.hpp"
#include "compat.hpp"

Include dependency graph for appprefs.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  std

Functions

wxString addPathSeparatorAtEnd (wxString dirName)
 Adds a path separator at the end of the directory name if it's not already present.

bool dirExists (const wxString &dirName, bool create)
 Indicates if the specified directory exists.


Detailed Description

Common preferences for the application.

Definition in file appprefs.cpp.


Function Documentation

wxString addPathSeparatorAtEnd wxString  dirName  )  [static]
 

Adds a path separator at the end of the directory name if it's not already present.

If the directory name is empty, the path separator isn't added.

Parameters:
dirName Name of the directory where the path separator will be added.
Returns:
The name of the directory with a path separator at the end.

Definition at line 1844 of file appprefs.cpp.

Referenced by AppPrefs::getConfigDir(), and AppPrefs::getConfigPathName().

bool dirExists const wxString &  dirName,
bool  create
[static]
 

Indicates if the specified directory exists.

Parameters:
dirName Name of the directory to test the existance.
create If the directory doesn't exist, try to create it.
Returns:
true if the directory exists, false otherwise.
Note:
The algorithm of creation of directory of this fonction is dumb. It just tries to create the full directory name.
For example, if only the C:\Program Files\MyApp directory exists, and the C:\Program Files\MyApp\Config\6.0 directory is tested for existance and creation, this fonction will try to create the C:\Program Files\MyApp\Config\6.0 directory and not the C:\Program Files\MyApp\Config directory and next C:\Program Files\MyApp\Config\6.0.

Definition at line 1874 of file appprefs.cpp.

Referenced by AppPrefs::getConfigDir().


Generated on Sun May 30 13:37:45 2004 for wxChecksums by doxygen 1.3.7