game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
platform::Paths Class Referenceabstract

#include <paths.h>

Public Member Functions

virtual ~Paths ()=default
virtual bool ensureDir (const std::filesystem::path &path) const
virtual std::filesystem::path expandPath (const std::string &path) const =0
virtual std::filesystem::path getCacheDir () const =0
virtual std::filesystem::path getDataDir () const =0
virtual std::filesystem::path getDocumentsDir () const =0
virtual std::filesystem::path getHomeDir () const =0
virtual std::filesystem::path getLogDir () const =0

Static Public Member Functions

static std::unique_ptr< Paths > create ()
static Paths & instance ()

Detailed Description

Definition at line 11 of file paths.h.

Constructor & Destructor Documentation

◆ ~Paths()

virtual platform::Paths::~Paths ( )
virtualdefault

Member Function Documentation

◆ create()

std::unique_ptr< Paths > platform::Paths::create ( )
static

Referenced by instance().

◆ ensureDir()

bool platform::Paths::ensureDir ( const std::filesystem::path & path) const
virtual

Definition at line 18 of file platform_common.cpp.

◆ expandPath()

virtual std::filesystem::path platform::Paths::expandPath ( const std::string & path) const
pure virtual

◆ getCacheDir()

virtual std::filesystem::path platform::Paths::getCacheDir ( ) const
pure virtual

◆ getDataDir()

virtual std::filesystem::path platform::Paths::getDataDir ( ) const
pure virtual

◆ getDocumentsDir()

virtual std::filesystem::path platform::Paths::getDocumentsDir ( ) const
pure virtual

◆ getHomeDir()

virtual std::filesystem::path platform::Paths::getHomeDir ( ) const
pure virtual

◆ getLogDir()

virtual std::filesystem::path platform::Paths::getLogDir ( ) const
pure virtual

◆ instance()

Paths & platform::Paths::instance ( )
static

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