![]() |
ufe 6.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Typedefs | |
typedef std::function< Path(const Path::Segments &)> | CreatePathFn |
typedef std::function< Path(const std::string &)> | CreateSingleSegmentPathFn |
typedef std::function< std::string(const Path &)> | StringFn |
Functions | |
Path | path (const std::string &pathString) |
std::string | string (const Path &path) |
std::string | pathSegmentSeparator () |
void | setPathSegmentSeparator (const std::string &separator) |
CreatePathFn | createPathFn () |
void | setCreatePathFn (const CreatePathFn &fn) |
CreateSingleSegmentPathFn | createSingleSegmentPathFn (const Rtid &rtId) |
void | setCreateSingleSegmentPathFn (const Rtid &rtId, const CreateSingleSegmentPathFn &fn) |
StringFn | stringFn () |
void | setStringFn (const StringFn &fn) |
void | registerPathComponentSeparator (const Rtid &rtId, char sep) |
void | unregisterPathComponentSeparator (const Rtid &rtId, char sep) |
std::list< Ufe::Rtid > | pathComponentSeparatorRunTimeIds (char sep) |
typedef std::function<Path(const Path::Segments&)> Ufe::PathString::CreatePathFn |
Definition at line 59 of file pathString.h.
typedef std::function<Path(const std::string&)> Ufe::PathString::CreateSingleSegmentPathFn |
Definition at line 60 of file pathString.h.
typedef std::function<std::string(const Path&)> Ufe::PathString::StringFn |
Definition at line 61 of file pathString.h.
CreatePathFn Ufe::PathString::createPathFn | ( | ) |
CreateSingleSegmentPathFn Ufe::PathString::createSingleSegmentPathFn | ( | const Rtid & | rtId | ) |
Return the single-segment path creation function for the argument runtime.
rtId | the ID of the runtime |
std::out_of_range | If the argument rtId has no creator function. |
Path Ufe::PathString::path | ( | const std::string & | pathString | ) |
pathString | A string with path segments separated by the path segment separator. |
EmptyPathSegment | If the path segment is an empty string, or a degenerate single path component separator (e.g. "/a/b,|", where "|" is a degenerate path segment). |
InvalidPathComponentSeparator | If the leading character or the character following the path segment separator is not a path component separator (e.g. "/a/b,foo", where "f" is not a path component separator). |
InvalidPath | If multiple runtimes register the same path component separator, each will be asked to create a scene item for the argument path string. If none succeeds, InvalidPath is thrown. |
Referenced by Ufe::Trie< T >::add(), Ufe::Trie< T >::contains(), Ufe::Trie< T >::createNode(), Ufe::Trie< T >::find(), Ufe::Trie< T >::node(), std::hash< Ufe_v6 ::Path >::operator()(), Ufe::BaseUndoableCommand::sceneItem(), and Ufe::BaseUndoableCommand::setPath().
std::list< Ufe::Rtid > Ufe::PathString::pathComponentSeparatorRunTimeIds | ( | char | sep | ) |
Return the runtimes corresponding to a path component separator.
sep | the path component separator character. |
std::string Ufe::PathString::pathSegmentSeparator | ( | ) |
void Ufe::PathString::registerPathComponentSeparator | ( | const Rtid & | rtId, |
char | sep | ||
) |
Register a path component separator for the argument runtime. It is legal for multiple runtimes to register the same path component separator.
rtId | the ID of the runtime for the path component separator. |
sep | the path component separator character. |
InvalidRunTimeId | Thrown if argument runtime ID does not exist. |
void Ufe::PathString::setCreatePathFn | ( | const CreatePathFn & | fn | ) |
Set the general path creation function. It cannot be empty.
std::invalid_argument | If fn is empty. |
void Ufe::PathString::setCreateSingleSegmentPathFn | ( | const Rtid & | rtId, |
const CreateSingleSegmentPathFn & | fn | ||
) |
Set the single-segment path creation function for the argument runtime.
rtId | the ID of the runtime for the single segment path creator. |
fn | the single-segment path creation function. |
InvalidRunTimeId | Thrown if argument runtime ID does not exist. |
void Ufe::PathString::setPathSegmentSeparator | ( | const std::string & | separator | ) |
Set the path segment string separator. Cannot be an empty string.
std::invalid_argument | If separator is empty. |
void Ufe::PathString::setStringFn | ( | const StringFn & | fn | ) |
Set the path to string creation function. It cannot be empty.
std::invalid_argument | If fn is empty. |
std::string Ufe::PathString::string | ( | const Path & | path | ) |
path | Path to a scene item. |
Referenced by Peptide::VersionFormat< VersionTrait >::getVersionInfo().
StringFn Ufe::PathString::stringFn | ( | ) |
void Ufe::PathString::unregisterPathComponentSeparator | ( | const Rtid & | rtId, |
char | sep | ||
) |
Unregister a path component separator for the argument runtime.
rtId | the ID of the runtime for the path component separator. |
sep | the path component separator character. |
std::out_of_range | If no such separator is registered. |