Voltray Engine Docs
Loading...
Searching...
No Matches
UserDataManager Class Reference

Manages user data directories across different operating systems. More...

#include <UserDataManager.h>

Static Public Member Functions

static bool Initialize ()
 Initialize the user data directory system.
 
static std::filesystem::path GetAppDataDirectory ()
 Get the main application data directory.
 
static std::filesystem::path GetWorkspacesDirectory ()
 Get the workspaces directory.
 
static std::filesystem::path GetSettingsDirectory ()
 Get the settings directory.
 
static std::filesystem::path GetCacheDirectory ()
 Get the cache directory.
 
static std::filesystem::path GetGlobalAssetsDirectory ()
 Get the global assets directory (shared across all workspaces)
 
static bool InitializeDefaultGlobalAssets ()
 Initialize default global assets (primitives like cube, sphere, etc.)
 
static bool IsInitialized ()
 Check if the user data system is initialized.
 

Detailed Description

Manages user data directories across different operating systems.

Member Function Documentation

◆ GetAppDataDirectory()

std::filesystem::path UserDataManager::GetAppDataDirectory ( )
static

Get the main application data directory.

Returns
Path to the application data directory

◆ GetCacheDirectory()

std::filesystem::path UserDataManager::GetCacheDirectory ( )
static

Get the cache directory.

Returns
Path to the cache directory

◆ GetGlobalAssetsDirectory()

std::filesystem::path UserDataManager::GetGlobalAssetsDirectory ( )
static

Get the global assets directory (shared across all workspaces)

Returns
Path to the global assets directory

◆ GetSettingsDirectory()

std::filesystem::path UserDataManager::GetSettingsDirectory ( )
static

Get the settings directory.

Returns
Path to the settings directory

◆ GetWorkspacesDirectory()

std::filesystem::path UserDataManager::GetWorkspacesDirectory ( )
static

Get the workspaces directory.

Returns
Path to the workspaces directory

◆ Initialize()

bool UserDataManager::Initialize ( )
static

Initialize the user data directory system.

Returns
true if successful, false otherwise

◆ InitializeDefaultGlobalAssets()

bool UserDataManager::InitializeDefaultGlobalAssets ( )
static

Initialize default global assets (primitives like cube, sphere, etc.)

Returns
true if successful

◆ IsInitialized()

bool UserDataManager::IsInitialized ( )
static

Check if the user data system is initialized.

Returns
true if initialized, false otherwise

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