Blender V4.3
GHOST_SystemPaths Class Referenceabstract

#include <GHOST_SystemPaths.hh>

Inherits GHOST_ISystemPaths.

Inherited by GHOST_SystemPathsCocoa, GHOST_SystemPathsUnix, and GHOST_SystemPathsWin32.

Public Member Functions

virtual const char * getSystemDir (int version, const char *versionstr) const =0
 
virtual const char * getUserDir (int version, const char *versionstr) const =0
 
virtual const char * getBinaryDir () const =0
 
virtual void addToSystemRecentFiles (const char *filepath) const =0
 
- Public Member Functions inherited from GHOST_ISystemPaths
virtual const char * getUserSpecialDir (GHOST_TUserSpecialDirTypes type) const =0
 

Protected Member Functions

 GHOST_SystemPaths ()
 
virtual ~GHOST_SystemPaths ()
 
- Protected Member Functions inherited from GHOST_ISystemPaths
 GHOST_ISystemPaths ()
 
virtual ~GHOST_ISystemPaths ()
 

Additional Inherited Members

- Static Public Member Functions inherited from GHOST_ISystemPaths
static GHOST_TSuccess create ()
 
static GHOST_TSuccess dispose ()
 
static GHOST_ISystemPathsget ()
 

Detailed Description

Definition at line 13 of file GHOST_SystemPaths.hh.

Constructor & Destructor Documentation

◆ GHOST_SystemPaths()

GHOST_SystemPaths::GHOST_SystemPaths ( )
inlineprotected

Constructor. Protected default constructor to force use of static createSystem member.

Definition at line 19 of file GHOST_SystemPaths.hh.

◆ ~GHOST_SystemPaths()

virtual GHOST_SystemPaths::~GHOST_SystemPaths ( )
inlineprotectedvirtual

Destructor. Protected default constructor to force use of static dispose member.

Definition at line 25 of file GHOST_SystemPaths.hh.

Member Function Documentation

◆ addToSystemRecentFiles()

virtual void GHOST_SystemPaths::addToSystemRecentFiles ( const char * filepath) const
pure virtual

Add the file to the operating system most recently used files

Implements GHOST_ISystemPaths.

Implemented in GHOST_SystemPathsCocoa, GHOST_SystemPathsUnix, and GHOST_SystemPathsWin32.

◆ getBinaryDir()

virtual const char * GHOST_SystemPaths::getBinaryDir ( ) const
pure virtual

Determine the directory of the current binary.

Returns
Unsigned char string pointing to the binary directory.

Implements GHOST_ISystemPaths.

Implemented in GHOST_SystemPathsCocoa, GHOST_SystemPathsUnix, and GHOST_SystemPathsWin32.

◆ getSystemDir()

virtual const char * GHOST_SystemPaths::getSystemDir ( int version,
const char * versionstr ) const
pure 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/blender/).

Implements GHOST_ISystemPaths.

Implemented in GHOST_SystemPathsCocoa, GHOST_SystemPathsUnix, and GHOST_SystemPathsWin32.

◆ getUserDir()

virtual const char * GHOST_SystemPaths::getUserDir ( int version,
const char * versionstr ) const
pure 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 ~/.blender/).

Implements GHOST_ISystemPaths.

Implemented in GHOST_SystemPathsCocoa, GHOST_SystemPathsUnix, and GHOST_SystemPathsWin32.


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