BRL-CAD
|
Go to the source code of this file.
Data Structures | |
struct | directory |
Macros | |
#define | RT_DIR_NULL ((struct directory *)0) |
#define | RT_CK_DIR(_dp) BU_CKMAG(_dp, RT_DIR_MAGIC, "(librt)directory") |
#define | d_addr d_un.file_offset |
#define | RT_DIR_PHONY_ADDR ((b_off_t)-1) |
Special marker for d_addr field. More... | |
#define | RT_DIR_SOLID 0x1 |
this name is a solid More... | |
#define | RT_DIR_COMB 0x2 |
combination More... | |
#define | RT_DIR_REGION 0x4 |
region More... | |
#define | RT_DIR_HIDDEN 0x8 |
object name is hidden More... | |
#define | RT_DIR_NON_GEOM 0x10 |
object is not geometry (e.g. binary object) More... | |
#define | RT_DIR_USED 0x80 |
One bit, used similar to d_nref. More... | |
#define | RT_DIR_INMEM 0x100 |
object is in memory (only) More... | |
#define | LOOKUP_NOISY 1 |
#define | LOOKUP_QUIET 0 |
#define | FOR_ALL_DIRECTORY_START(_dp, _dbip) |
#define | FOR_ALL_DIRECTORY_END }}} |
#define | RT_DIR_SET_NAMEP(_dp, _name) |
#define | RT_DIR_FREE_NAMEP(_dp) |
#define | RT_GET_DIRECTORY(_p, _res) |
Functions | |
struct directory ** | db_argv_to_dpv (const struct db_i *dbip, const char **argv) |
char ** | db_dpv_to_argv (struct directory **dpv) |
#define RT_DIR_NULL ((struct directory *)0) |
Definition at line 78 of file directory.h.
#define RT_CK_DIR | ( | _dp | ) | BU_CKMAG(_dp, RT_DIR_MAGIC, "(librt)directory") |
Definition at line 79 of file directory.h.
#define d_addr d_un.file_offset |
Definition at line 81 of file directory.h.
#define RT_DIR_PHONY_ADDR ((b_off_t)-1) |
Special marker for d_addr field.
Definition at line 82 of file directory.h.
#define RT_DIR_SOLID 0x1 |
this name is a solid
Definition at line 85 of file directory.h.
#define RT_DIR_COMB 0x2 |
combination
Definition at line 86 of file directory.h.
#define RT_DIR_REGION 0x4 |
region
Definition at line 87 of file directory.h.
#define RT_DIR_HIDDEN 0x8 |
object name is hidden
Definition at line 88 of file directory.h.
#define RT_DIR_NON_GEOM 0x10 |
object is not geometry (e.g. binary object)
Definition at line 89 of file directory.h.
#define RT_DIR_USED 0x80 |
One bit, used similar to d_nref.
Definition at line 90 of file directory.h.
#define RT_DIR_INMEM 0x100 |
#define LOOKUP_NOISY 1 |
Definition at line 94 of file directory.h.
#define LOOKUP_QUIET 0 |
Definition at line 95 of file directory.h.
#define FOR_ALL_DIRECTORY_START | ( | _dp, | |
_dbip | |||
) |
Definition at line 97 of file directory.h.
#define FOR_ALL_DIRECTORY_END }}} |
Definition at line 101 of file directory.h.
#define RT_DIR_SET_NAMEP | ( | _dp, | |
_name | |||
) |
Definition at line 103 of file directory.h.
#define RT_DIR_FREE_NAMEP | ( | _dp | ) |
Use this macro to free the d_namep member, which is sometimes not dynamic.
Definition at line 116 of file directory.h.
#define RT_GET_DIRECTORY | ( | _p, | |
_res | |||
) |
allocate and link in a new directory entry to the resource structure's freelist
Definition at line 126 of file directory.h.
convert an argv list of names to a directory pointer array.
If db_lookup fails for any individual argv, an empty directory structure is created and assigned the name and RT_DIR_PHONY_ADDR
The returned directory ** structure is NULL terminated.
char ** db_dpv_to_argv | ( | struct directory ** | dpv | ) |
convert a directory pointer array to an argv char pointer array.