FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
#pragma once
#include <QString>
namespace fincept {
/// Central registry for all application file-system paths.
///
/// All paths live under a single root directory:
/// Windows : %LOCALAPPDATA%/com.fincept.terminal/
/// macOS : ~/Library/Application Support/com.fincept.terminal/
/// Linux : ~/.local/share/com.fincept.terminal/
///
/// Sub-directories:
/// data/ — SQLite databases (fincept.db, cache.db)
/// logs/ — Application log files
/// files/ — User-managed file attachments
/// cache/ — Tile caches and other transient network data
///
/// The Python runtime lives directly under root() (uv/, python/, uv-cache/,
/// venv-numpy1/, venv-numpy2/) and is owned by PythonSetupManager.
///
/// Call AppPaths::ensure_all() once at startup to create every sub-directory.
class AppPaths {
public:
/// Root: %LOCALAPPDATA%\com.fincept.terminal (Windows)
static QString root();
/// root/data — persistent databases
static QString data();
/// root/logs — log files
static QString logs();
/// root/files — user-managed file attachments
static QString files();
/// root/cache — tile caches and transient network data
static QString cache();
/// root/workspaces — saved workspace files (.fwsp)
static QString workspaces();
/// root/crashdumps — minidumps written by the unhandled-exception filter
static QString crashdumps();
/// Create all sub-directories if they don't exist.
/// Call once before any path is used.
static void ensure_all();
};
} // namespace fincept