Radium Engine  1.5.20
Loading...
Searching...
No Matches
Resources.hpp
1#pragma once
2#include <Core/RaCore.hpp>
3#include <Core/Utils/StdOptional.hpp>
4
5namespace Ra {
6namespace Core {
7
23namespace Resources {
24using namespace Ra::Core::Utils;
34RA_CORE_API optional<std::string> getRadiumResourcesPath();
35
41RA_CORE_API optional<std::string> getRadiumPluginsPath();
42
46RA_CORE_API optional<std::string> getBasePath();
47
54RA_CORE_API optional<std::string> getResourcesPath( void* symbol = nullptr,
55 const std::string& pattern = "Resources" );
56
58
68RA_CORE_API std::string getDataPath();
69
74RA_CORE_API void pushDataPath( std::string datapath );
75
81RA_CORE_API std::string popDataPath();
83
84} // namespace Resources
85} // namespace Core
86} // namespace Ra
std::string getDataPath()
Get the current data path.
Definition Resources.cpp:70
std::string popDataPath()
Pop the current data path.
Definition Resources.cpp:75
optional< std::string > getRadiumPluginsPath()
Get the path of Radium embedded plugins.
Definition Resources.cpp:44
optional< std::string > getBasePath()
this one is always found, use optional for consistency ?
Definition Resources.cpp:53
void pushDataPath(std::string datapath)
Push a new data path.
Definition Resources.cpp:82
optional< std::string > getResourcesPath(void *symbol, const std::string &pattern)
Search for general resource path.
Definition Resources.cpp:57
optional< std::string > getRadiumResourcesPath()
Get the path of Radium internal resources.
Definition Resources.cpp:35
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3