Blender V4.3
GHOST_ISystemPaths.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "GHOST_Types.h"
12
14 public:
19 static GHOST_TSuccess create();
20
25 static GHOST_TSuccess dispose();
26
31 static GHOST_ISystemPaths *get();
32
33 protected:
39
45
46 public:
52 virtual const char *getSystemDir(int version, const char *versionstr) const = 0;
53
59 virtual const char *getUserDir(int version, const char *versionstr) const = 0;
60
65 virtual const char *getUserSpecialDir(GHOST_TUserSpecialDirTypes type) const = 0;
66
71 virtual const char *getBinaryDir() const = 0;
72
76 virtual void addToSystemRecentFiles(const char *filepath) const = 0;
77
78 private:
80 static GHOST_ISystemPaths *m_systemPaths;
81
82#ifdef WITH_CXX_GUARDEDALLOC
83 MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_ISystemPaths")
84#endif
85};
GHOST_TSuccess
Definition GHOST_Types.h:87
GHOST_TUserSpecialDirTypes
virtual const char * getSystemDir(int version, const char *versionstr) const =0
virtual const char * getUserDir(int version, const char *versionstr) const =0
static GHOST_TSuccess create()
static GHOST_TSuccess dispose()
static GHOST_ISystemPaths * get()
virtual const char * getUserSpecialDir(GHOST_TUserSpecialDirTypes type) const =0
virtual void addToSystemRecentFiles(const char *filepath) const =0
virtual const char * getBinaryDir() const =0