AYON Usd Resolver  0.1.0
Loading...
Searching...
No Matches
resolutionFunctions.h
Go to the documentation of this file.
1// #ifndef AR_AYONUSDRESOLVER_RESELUTIONFUNCTIONS_H
2// #define AR_AYONUSDRESOLVER_RESELUTIONFUNCTIONS_H
3
4#include "pxr/pxr.h"
5#include "pxr/usd/ar/filesystemAsset.h"
6#include "pxr/usd/ar/resolvedPath.h"
7#include <string>
8#include <regex>
9
10#define CONVERT_STRING(string) #string
11#define DEFINE_STRING(string) CONVERT_STRING(string)
12
14
15void RemoveSdfFormatArgs(std::string &uri);
16
17#if MACRO_REMOVE_SDF_FORMAT_ARGS == 1
18 #define RES_FUNCS_REMOVE_SDF_ARGS(x) RemoveSdfFormatArgs(x);
19#else
20 #define RES_FUNCS_REMOVE_SDF_ARGS(x) ;
21#endif
22
23bool _IsRelativePath(const std::string &path);
24
25bool _IsFileRelativePath(const std::string &path);
26
27bool _IsAyonPath(const std::string &assetPath);
28
29bool _IsNotFilePath(const std::string &path);
30
31std::string _AnchorRelativePath(const std::string &anchorPath, const std::string &path);
32
33ArResolvedPath _ResolveAnchored(const std::string &anchorPath, const std::string &path);
34
35// #endif // AR_AYONUSDRESOLVER_RESELUTIONFUNCTIONS_H
Definition: wrapResolverTokens.cpp:14
std::string _AnchorRelativePath(const std::string &anchorPath, const std::string &path)
Definition: resolutionFunctions.cpp:63
PXR_NAMESPACE_USING_DIRECTIVE void RemoveSdfFormatArgs(std::string &uri)
Definition: resolutionFunctions.cpp:23
bool _IsNotFilePath(const std::string &path)
Definition: resolutionFunctions.cpp:58
bool _IsRelativePath(const std::string &path)
Definition: resolutionFunctions.cpp:34
bool _IsAyonPath(const std::string &assetPath)
Definition: resolutionFunctions.cpp:43
ArResolvedPath _ResolveAnchored(const std::string &anchorPath, const std::string &path)
Definition: resolutionFunctions.cpp:78
bool _IsFileRelativePath(const std::string &path)
Definition: resolutionFunctions.cpp:39