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