Blender V4.3
GHOST_SystemPathsWin32 Class Reference

#include <GHOST_SystemPathsWin32.hh>

Inherits GHOST_SystemPaths.

Public Member Functions

 GHOST_SystemPathsWin32 ()
 
 ~GHOST_SystemPathsWin32 ()
 
const char * getSystemDir (int version, const char *versionstr) const
 
const char * getUserDir (int version, const char *versionstr) const
 
const char * getUserSpecialDir (GHOST_TUserSpecialDirTypes type) const
 
const char * getBinaryDir () const
 
void addToSystemRecentFiles (const char *filepath) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GHOST_ISystemPaths
static GHOST_TSuccess create ()
 
static GHOST_TSuccess dispose ()
 
static GHOST_ISystemPathsget ()
 
- Protected Member Functions inherited from GHOST_SystemPaths
 GHOST_SystemPaths ()
 
virtual ~GHOST_SystemPaths ()
 
- Protected Member Functions inherited from GHOST_ISystemPaths
 GHOST_ISystemPaths ()
 
virtual ~GHOST_ISystemPaths ()
 

Detailed Description

WIN32 Implementation of GHOST_SystemPaths class.

See also
GHOST_SystemPaths.

Definition at line 24 of file GHOST_SystemPathsWin32.hh.

Constructor & Destructor Documentation

◆ GHOST_SystemPathsWin32()

GHOST_SystemPathsWin32::GHOST_SystemPathsWin32 ( )

Constructor.

Definition at line 18 of file GHOST_SystemPathsWin32.cc.

◆ ~GHOST_SystemPathsWin32()

GHOST_SystemPathsWin32::~GHOST_SystemPathsWin32 ( )

Destructor.

Definition at line 20 of file GHOST_SystemPathsWin32.cc.

Member Function Documentation

◆ addToSystemRecentFiles()

void GHOST_SystemPathsWin32::addToSystemRecentFiles ( const char * filepath) const
virtual

Add the file to the operating system most recently used files

Implements GHOST_SystemPaths.

Definition at line 125 of file GHOST_SystemPathsWin32.cc.

References UTF16_ENCODE, and UTF16_UN_ENCODE.

◆ getBinaryDir()

const char * GHOST_SystemPathsWin32::getBinaryDir ( ) const
virtual

Determine the directory of the current binary.

Returns
Unsigned char string pointing to the binary directory.

Implements GHOST_SystemPaths.

Definition at line 112 of file GHOST_SystemPathsWin32.cc.

References conv_utf_16_to_8().

◆ getSystemDir()

const char * GHOST_SystemPathsWin32::getSystemDir ( int version,
const char * versionstr ) const
virtual

Determine the base directory in which shared resources are located. It will first try to use "unpack and run" path, then look for properly installed path, including versioning.

Returns
Unsigned char string pointing to system directory (eg /usr/share/).

Implements GHOST_SystemPaths.

Definition at line 22 of file GHOST_SystemPathsWin32.cc.

References conv_utf_16_to_8().

◆ getUserDir()

const char * GHOST_SystemPathsWin32::getUserDir ( int version,
const char * versionstr ) const
virtual

Determine the base directory in which user configuration is stored, including versioning. If needed, it will create the base directory.

Returns
Unsigned char string pointing to user directory (eg ~/).

Implements GHOST_SystemPaths.

Definition at line 44 of file GHOST_SystemPathsWin32.cc.

References conv_utf_16_to_8().

◆ getUserSpecialDir()

const char * GHOST_SystemPathsWin32::getUserSpecialDir ( GHOST_TUserSpecialDirTypes type) const
virtual

Determine a special ("well known") and easy to reach user directory.

Returns
Unsigned char string pointing to user directory (eg ~/Documents/).

Implements GHOST_ISystemPaths.

Definition at line 65 of file GHOST_SystemPathsWin32.cc.

References conv_utf_16_to_8(), GHOST_ASSERT, GHOST_kUserSpecialDirCaches, GHOST_kUserSpecialDirDesktop, GHOST_kUserSpecialDirDocuments, GHOST_kUserSpecialDirDownloads, GHOST_kUserSpecialDirMusic, GHOST_kUserSpecialDirPictures, and GHOST_kUserSpecialDirVideos.


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