FnUsdAbstractionLib 0.6.0
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
usg::AssetPath Class Reference

A wrapper for SdfAssetPath. More...

#include <AssetPath.h>

Classes

class  Lazy
 Lazily construct an AssetPath when requested. Primarily used for the static AssetPath. More...
 

Public Member Functions

 AssetPath ()
 Abstraction handle for casting to underlying implementation type.
 
 AssetPath (const std::string &path)
 
 AssetPath (const std::string &path, const std::string &resolvedPath)
 
 AssetPath (const AssetPath::Handle &handle)
 
 AssetPath (AssetPath &&rhs) noexcept
 
AssetPathoperator= (AssetPath &&rhs) noexcept
 
 AssetPath (const AssetPath &rhs)
 
AssetPathoperator= (const AssetPath &rhs)
 
bool operator== (const AssetPath &rhs) const
 Equality, including the resolved path.
 
bool operator!= (const AssetPath &rhs) const
 
bool operator< (const AssetPath &rhs) const
 Ordering first by asset path, then by resolved path.
 
const std::string & assetPath () const
 Returns the asset path.
 
const std::string & resolvedPath () const
 Return the resolved asset path, if any.
 
const std::string & asString () const
 Return the AssetPath as a string.
 
AssetPath::Handle & getAssetPath (int usd_version)
 Get the underlying SdfAssetPath.
 
const AssetPath::Handle & getAssetPath (int usd_version) const
 
uint64_t hash () const
 Get the hash of the underlying SdfAssetPath.
 
void append (fdk::Hash &hash) const
 Add the path's hash to a fdk::Hash object.
 
int handleIndex () const
 Returns the index of the underlying handle. For internal use only!
 
 AssetPath (int handleIndex)
 Assign from a pre-known handle index. For internal use only!
 

Detailed Description

A wrapper for SdfAssetPath.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk