![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cInstallDir.h>
Public Member Functions | |
cInstallDir (void) | |
~cInstallDir (void) | |
bool | isInstallValid () const |
cStringF | get_InstallDir () const |
HRESULT | put_InstallDir (cStringF sInstallDir) |
bool | IsInInstall (const FILECHAR_t *pszPath) const |
cStringF | MakeFilePath (cStringF sPath) const |
cStringF | MakeRelativePath (const FILECHAR_t *pszFullPath) const |
Static Public Member Functions | |
static cStringF GRAYCALL | GetDefaultInstallDirBase () |
static bool GRAYCALL | IsInstallDirRestricted (const FILECHAR_t *pszName) |
Protected Attributes | |
bool | m_bInstallValid |
The install has actually placed at least one file. More... | |
cStringF | m_sInstallDir |
main common data directory. More... | |
Base/default/root path for some set of installed files. (on local hard disk) Acts sort of like the current directory. Allow the install to have optional branches/modules. Allow the branches to be renamed and redirected, aliased. Convert from a resource name to a full file path name.
GrayLib::cInstallDir::cInstallDir | ( | void | ) |
GrayLib::cInstallDir::~cInstallDir | ( | void | ) |
|
inline |
|
static |
get the default base directory where files might be installed for this machine. NOT specific to this App. _WIN32 = "Program Files"
bool GrayLib::cInstallDir::IsInInstall | ( | const FILECHAR_t * | pszPath | ) | const |
is pszPath in the m_sInstallDir ? Assume it is if not rooted.
|
static |
is this an invalid install dir? I can't install into root system directories, Temporary areas etc.
|
inline |
Given a relative resource file name. Make the full path to the file.
|
inline |
Given a full path, get a path relative to the m_sInstallDir root (if possible) else return full path.
Set the base data directory for map and resource files.
|
protected |
The install has actually placed at least one file.
|
protected |
main common data directory.