|
HDK
|
Read-Only Packed Folder Structure. More...
#include <GU_PackedFolders.h>
Classes | |
| class | FileInfo |
| Class representing a file in the file map. More... | |
Public Member Functions | |
| GU_PackedFoldersRO () | |
| Construct a folder structure with its own detail. More... | |
| GU_PackedFoldersRO (const GU_DetailHandle &d) | |
| GU_PackedFoldersRO (const GU_ConstDetailHandle &d) | |
| ~GU_PackedFoldersRO ()=default | |
| void | replaceDetail (const GU_DetailHandle &d) |
| Rebuild file map over the given detail, holding references to it. More... | |
| bool | isFolder (const UT_StringRef &path) const |
| const GU_PackedFoldersRO::FileInfo * | findFile (const UT_StringRef &path) const |
| void | findChildren (UT_Array< const GU_PackedFoldersRO::FileInfo * > &out, const UT_StringRef &path) const |
| bool | findFilesByPattern (UT_Array< const GU_PackedFoldersRO::FileInfo * > &out, const UT_StringRef &pattern_str, bool sorted, UT_StringHolder &error) const |
| bool | verify () const |
| UT_StringHolder | getTopoFormat () const |
| Returns a string representing the topology of the whole. More... | |
| GU_PackedFoldersRO (const GU_PackedFoldersRO &src) | |
| GU_PackedFoldersRO & | operator= (const GU_PackedFoldersRO &src) |
Static Public Member Functions | |
| static UT_StringHolder | getTopoFormat (const GU_ConstDetailHandle &root_h) |
Read-Only Packed Folder Structure.
Definition at line 27 of file GU_PackedFolders.h.
| GU_PackedFoldersRO::GU_PackedFoldersRO | ( | ) |
Construct a folder structure with its own detail.
|
inlineexplicit |
Construct and build the map over the given detail, holding references to it
Definition at line 140 of file GU_PackedFolders.h.
|
inlineexplicit |
Construct and build the map over the given detail, holding references to it
Definition at line 147 of file GU_PackedFolders.h.
|
default |
|
inline |
Copy geometry and hierarchy from another GU_PackedFoldersRO
Definition at line 156 of file GU_PackedFolders.h.
| void GU_PackedFoldersRO::findChildren | ( | UT_Array< const GU_PackedFoldersRO::FileInfo * > & | out, |
| const UT_StringRef & | path | ||
| ) | const |
Fill array with the children of this file at path, if it exists Note: GU_PackedFolders::FileInfo* can become invalid when rebuildMap() is called.
| const GU_PackedFoldersRO::FileInfo* GU_PackedFoldersRO::findFile | ( | const UT_StringRef & | path | ) | const |
Get file access for read; returns nullptr if file does not exist Note: GU_PackedFolders::FileInfo* can become invalid when rebuildMap() is called.
| bool GU_PackedFoldersRO::findFilesByPattern | ( | UT_Array< const GU_PackedFoldersRO::FileInfo * > & | out, |
| const UT_StringRef & | pattern_str, | ||
| bool | sorted, | ||
| UT_StringHolder & | error | ||
| ) | const |
Fill array with files which path the given apex syntax pattern; returns false on bad pattern_str
| sorted | Sorts the output list by file path. If disabled, the list is in an arbitrary order. Note: GU_PackedFolders::FileInfo* can become invalid when rebuildMap() is called. |
| UT_StringHolder GU_PackedFoldersRO::getTopoFormat | ( | ) | const |
Returns a string representing the topology of the whole.
|
static |
Returns a string representing the topology of the whole folder structure but without actually building the GU_PackedFolders.
| bool GU_PackedFoldersRO::isFolder | ( | const UT_StringRef & | path | ) | const |
Check if file at given path is a folder; returns false if file does not exist
| GU_PackedFoldersRO& GU_PackedFoldersRO::operator= | ( | const GU_PackedFoldersRO & | src | ) |
Copy geometry and hierarchy from another GU_PackedFoldersRO
| void GU_PackedFoldersRO::replaceDetail | ( | const GU_DetailHandle & | d | ) |
Rebuild file map over the given detail, holding references to it.
| bool GU_PackedFoldersRO::verify | ( | ) | const |
Verifies packed primitive implementation pointers. Only does something on Windows debug builds.