Blender  V3.3
GHOST_ISystemPaths.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2009 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "GHOST_Types.h"
11 
13  public:
18  static GHOST_TSuccess create();
19 
24  static GHOST_TSuccess dispose();
25 
30  static GHOST_ISystemPaths *get();
31 
32  protected:
38  {
39  }
40 
46  {
47  }
48 
49  public:
55  virtual const char *getSystemDir(int version, const char *versionstr) const = 0;
56 
62  virtual const char *getUserDir(int version, const char *versionstr) const = 0;
63 
68  virtual const char *getUserSpecialDir(GHOST_TUserSpecialDirTypes type) const = 0;
69 
74  virtual const char *getBinaryDir() const = 0;
75 
79  virtual void addToSystemRecentFiles(const char *filename) const = 0;
80 
81  private:
83  static GHOST_ISystemPaths *m_systemPaths;
84 
85 #ifdef WITH_CXX_GUARDEDALLOC
86  MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_ISystemPaths")
87 #endif
88 };
GHOST_TSuccess
Definition: GHOST_Types.h:74
GHOST_TUserSpecialDirTypes
Definition: GHOST_Types.h:562
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
virtual const char * getBinaryDir() const =0
virtual const char * getSystemDir(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 *filename) const =0
virtual const char * getUserDir(int version, const char *versionstr) const =0