ufe  4.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
pathString.h
Go to the documentation of this file.
1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/pathString.h"
2 #ifndef _ufePathString
3 #define _ufePathString
4 // ===========================================================================
5 // Copyright 2021 Autodesk, Inc. All rights reserved.
6 //
7 // Use of this software is subject to the terms of the Autodesk license
8 // agreement provided at the time of installation or download, or which
9 // otherwise accompanies this software in either electronic or hard copy form.
10 // ===========================================================================
11 
12 #include "path.h" // For Path::Segment
13 
14 #include <string>
15 #include <functional>
16 #include <list>
17 
18 UFE_NS_DEF {
19 
57 namespace PathString {
58 
59 typedef std::function<Path(const Path::Segments&)> CreatePathFn;
60 typedef std::function<Path(const std::string&)> CreateSingleSegmentPathFn;
61 typedef std::function<std::string(const Path&)> StringFn;
62 
68 UFE_SDK_DECL Path path(const std::string& pathString);
69 
73 
76 
79 UFE_SDK_DECL void setPathSegmentSeparator(const std::string& separator);
80 
83 
87 
93  const Rtid& rtId);
94 
100  const Rtid& rtId,
101  const CreateSingleSegmentPathFn& fn);
102 
105 
108 UFE_SDK_DECL void setStringFn(const StringFn& fn);
109 
115 UFE_SDK_DECL void registerPathComponentSeparator(const Rtid& rtId, char sep);
116 
121 UFE_SDK_DECL void unregisterPathComponentSeparator(const Rtid& rtId, char sep);
122 
125 UFE_SDK_DECL std::list<Ufe::Rtid> pathComponentSeparatorRunTimeIds(char sep);
126 
127 }
128 
129 }
130 
131 #endif /* _ufePathString */
void registerPathComponentSeparator(const Rtid &rtId, char sep)
std::function< std::string(const Path &)> StringFn
Definition: pathString.h:61
std::string string(const Path &path)
void setCreatePathFn(const CreatePathFn &fn)
std::list< Ufe::Rtid > pathComponentSeparatorRunTimeIds(char sep)
std::function< Path(const std::string &)> CreateSingleSegmentPathFn
Definition: pathString.h:60
Identify an object or 3D path in the scene.
Definition: path.h:37
std::function< Path(const Path::Segments &)> CreatePathFn
Definition: pathString.h:59
CreateSingleSegmentPathFn createSingleSegmentPathFn(const Rtid &rtId)
uint32_t Rtid
Definition: rtid.h:26
CreatePathFn createPathFn()
void setPathSegmentSeparator(const std::string &separator)
void setCreateSingleSegmentPathFn(const Rtid &rtId, const CreateSingleSegmentPathFn &fn)
#define UFE_NS_DEF
Definition: ufe.h:35
Path path(const std::string &pathString)
StringFn stringFn()
void unregisterPathComponentSeparator(const Rtid &rtId, char sep)
void setStringFn(const StringFn &fn)
#define UFE_SDK_DECL
Definition: ufeExport.h:36
std::string pathSegmentSeparator()