retinify 0.1.7
Real-Time AI Stereo Vision Library
Loading...
Searching...
No Matches
paths.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2025 Sensui Yagi. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
7#include "retinify/status.hpp"
8
9#include <filesystem>
10
11namespace retinify
12{
19RETINIFY_API [[nodiscard]] auto HomeDirectoryPath(std::filesystem::path &path) noexcept -> Status;
20
27RETINIFY_API [[nodiscard]] auto ConfigDirectoryPath(std::filesystem::path &path) noexcept -> Status;
28
35RETINIFY_API [[nodiscard]] auto CacheDirectoryPath(std::filesystem::path &path) noexcept -> Status;
36
43RETINIFY_API [[nodiscard]] auto DataDirectoryPath(std::filesystem::path &path) noexcept -> Status;
44
51RETINIFY_API [[nodiscard]] auto StateDirectoryPath(std::filesystem::path &path) noexcept -> Status;
52} // namespace retinify
#define RETINIFY_API
Defines a macro for setting API visibility to "default" for the retinify library.
Definition attributes.hpp:8
This class represents the status of an operation in the retinify library.
Definition status.hpp:51
Definition colormap.hpp:13
RETINIFY_API auto StateDirectoryPath(std::filesystem::path &path) noexcept -> Status
Returns the state directory path for retinify.
RETINIFY_API auto CacheDirectoryPath(std::filesystem::path &path) noexcept -> Status
Returns the cache directory path for retinify.
RETINIFY_API auto ConfigDirectoryPath(std::filesystem::path &path) noexcept -> Status
Returns the configuration directory path for retinify.
RETINIFY_API auto DataDirectoryPath(std::filesystem::path &path) noexcept -> Status
Returns the data directory path for retinify.
RETINIFY_API auto HomeDirectoryPath(std::filesystem::path &path) noexcept -> Status
Returns the current user’s home directory path.