#include <SdlResourceLocator.h>
|
static bool | isRecognized (std::string_view sdlValueStr) |
| Check whether the string is a SDL resource identifier. Checks the format of the string only. Does not test whether the identifier actually points to a valid resource or not. This utility is useful when a quick test for the content of the value string is desired.
|
|
◆ SdlResourceLocator()
ph::SdlResourceLocator::SdlResourceLocator |
( |
const SdlIOContext & | ctx | ) |
|
|
explicit |
◆ getType()
ESriType ph::SdlResourceLocator::getType |
( |
std::string_view | identifier | ) |
const |
Tries to get type information from a potential SRI.
- Parameters
-
identifier | The identifier to get type from. Does not need to be a SRI. |
- Returns
- Type of the identifier.
ESriType::Unknown
if not a SRI.
◆ isRecognized()
bool ph::SdlResourceLocator::isRecognized |
( |
std::string_view | sdlValueStr | ) |
|
|
static |
Check whether the string is a SDL resource identifier. Checks the format of the string only. Does not test whether the identifier actually points to a valid resource or not. This utility is useful when a quick test for the content of the value string is desired.
◆ resolve()
◆ toBundleIdentifier()
Get an identifier representing the path.
- Returns
- A bundle identifier resolving to
path
.
◆ toBundleSRI()
std::string ph::SdlResourceLocator::toBundleSRI |
( |
std::string_view | sri | ) |
const |
◆ toExternalIdentifier()
Get an identifier representing the path.
- Returns
- An external identifier resolving to
path
.
◆ toExternalSRI()
std::string ph::SdlResourceLocator::toExternalSRI |
( |
std::string_view | sri | ) |
const |
◆ toPath()
Path ph::SdlResourceLocator::toPath |
( |
std::string_view | sri | ) |
const |
The documentation for this class was generated from the following files: