FnUsdAbstractionLib 15.0.8
Loading...
Searching...
No Matches
usg::Path Class Reference

A wrapper for PXR_NS::SdfPath. More...

#include <Path.h>

Public Member Functions

 Path ()
 Abstraction handle for casting to underlying implementation type.
 
 Path (const char *text)
 
 Path (const std::string &text)
 
 Path (const Path::Handle &handle)
 
 Path (Path &&rhs) noexcept
 
Pathoperator= (Path &&rhs) noexcept
 
 Path (const Path &rhs)
 
Pathoperator= (const Path &rhs)
 
const std::string & name () const
 Return the last part of the path, usually the prim or attribute name.
 
Path parent () const
 Return the parent portion of the path.
 
void clear ()
 Clear the path to empty.
 
bool empty () const
 Return true if the path is empty.
 
std::string asString () const
 Return the path as a string.
 
Path appendChild (const Token &suffix) const
 Return a new path consisting of appending a child component to the path.
 
Path appendChild (const char *suffix) const
 Return a new path consisting of appending a child component to the path.
 
Path appendChild (const std::string &suffix) const
 Return a new path consisting of appending a child component to the path.
 
Path appendPath (const Path &path) const
 Return a new path consisting of appending another path to this path.
 
Path appendProperty (const Token &property) const
 Return a new path consisting of appending a property component to the path.
 
Path makeAbsolutePath (const Path &anchor) const
 Returns a new absolute path resolved against the anchor path.
 
Path makeRelativePath (const Path &anchor) const
 Returns a new path relative to the anchor path.
 
bool operator== (const Path &rhs) const
 
bool operator!= (const Path &rhs) const
 
bool operator< (const Path &rhs) const
 
Path::Handle & getPath (int usd_version)
 Get the underlying SdfPath.
 
const Path::Handle & getPath (int usd_version) const
 
uint64_t hash () const
 Get the hash of the underlying SdfPath.
 
void append (fdk::Hash &hash) const
 Add the path's hash to a fdk::Hash object.
 
bool isValidPath (std::string *errorMsg=nullptr) const
 Checks if path contents are valid, and if not return false and pass the error string into the subsystem.
 
bool isAbsolutePath () const
 Returns true if the path is absolute.
 

Static Public Member Functions

static bool IsValidPathString (const std::string &pathString, std::string *errorMsg=nullptr)
 Checks if string is a valid Path, and if not return false and pass the error string into the subsystem.
 
static const PathAbsoluteRootPath ()
 

Detailed Description

A wrapper for PXR_NS::SdfPath.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com