BRL-CAD
db_fullpath.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  db_full_path
 

Macros

#define DB_FULL_PATH_POP(_pp)   ((_pp)->fp_len > 0) ? (_pp)->fp_len-- : (_pp)->fp_len
 
#define DB_FULL_PATH_CUR_DIR(_pp)   ((_pp)->fp_names[(_pp)->fp_len-1])
 
#define DB_FULL_PATH_CUR_BOOL(_pp)   ((_pp)->fp_bool[(_pp)->fp_len-1])
 
#define DB_FULL_PATH_SET_CUR_BOOL(_pp, _i)   ((_pp)->fp_bool[(_pp)->fp_len-1] = _i)
 
#define DB_FULL_PATH_ROOT_DIR(_pp)   ((_pp)->fp_names[0])
 
#define DB_FULL_PATH_GET(_pp, _i)   ((_pp)->fp_names[(_i)])
 
#define DB_FULL_PATH_GET_BOOL(_pp, _i)   ((_pp)->fp_bool[(_i)])
 
#define DB_FULL_PATH_SET_BOOL(_pp, _i, _j)   ((_pp)->fp_bool[(_i)] = _j)
 
#define RT_CK_FULL_PATH(_p)   BU_CKMAG(_p, DB_FULL_PATH_MAGIC, "db_full_path")
 
#define DB_FP_PRINT_BOOL   0x1 /* print boolean operations */
 
#define DB_FP_PRINT_TYPE   0x2 /* print object types */
 
#define DB_FP_PRINT_MATRIX   0x4 /* print notice that a matrix is present */
 

Typedefs

typedef struct resource struct_resource
 

Functions

void db_full_path_init (struct db_full_path *pathp)
 
void db_add_node_to_full_path (struct db_full_path *pp, struct directory *dp)
 
void db_dup_full_path (struct db_full_path *newp, const struct db_full_path *oldp)
 
void db_extend_full_path (struct db_full_path *pathp, size_t incr)
 
void db_append_full_path (struct db_full_path *dest, const struct db_full_path *src)
 
void db_dup_path_tail (struct db_full_path *newp, const struct db_full_path *oldp, off_t start)
 
char * db_path_to_string (const struct db_full_path *pp)
 
void db_path_to_vls (struct bu_vls *str, const struct db_full_path *pp)
 
void db_fullpath_to_vls (struct bu_vls *vls, const struct db_full_path *full_path, const struct db_i *dbip, int fp_flags)
 
void db_pr_full_path (const char *msg, const struct db_full_path *pathp)
 
int db_string_to_path (struct db_full_path *pp, const struct db_i *dbip, const char *str)
 
int db_argv_to_path (struct db_full_path *pp, struct db_i *dbip, int argc, const char *const *argv)
 
void db_free_full_path (struct db_full_path *pp)
 
int db_identical_full_paths (const struct db_full_path *a, const struct db_full_path *b)
 
int db_full_path_subset (const struct db_full_path *a, const struct db_full_path *b, const int skip_first)
 
int db_full_path_match_top (const struct db_full_path *a, const struct db_full_path *b)
 
int db_full_path_search (const struct db_full_path *a, const struct directory *dp)
 
int db_path_to_mat (struct db_i *dbip, struct db_full_path *pathp, mat_t mat, int depth, struct resource *resp)
 

Detailed Description

librt functions related to fullpaths.

Definition in file db_fullpath.h.

Macro Definition Documentation

#define DB_FULL_PATH_POP (   _pp)    ((_pp)->fp_len > 0) ? (_pp)->fp_len-- : (_pp)->fp_len
#define DB_FULL_PATH_CUR_BOOL (   _pp)    ((_pp)->fp_bool[(_pp)->fp_len-1])

Definition at line 52 of file db_fullpath.h.

Referenced by f_bool(), and print_path_with_bools().

#define DB_FULL_PATH_SET_CUR_BOOL (   _pp,
  _i 
)    ((_pp)->fp_bool[(_pp)->fp_len-1] = _i)

Definition at line 53 of file db_fullpath.h.

Referenced by _db_search_full_paths(), db_fullpath_list_subtree(), and db_search().

#define DB_FULL_PATH_ROOT_DIR (   _pp)    ((_pp)->fp_names[0])
#define DB_FULL_PATH_GET_BOOL (   _pp,
  _i 
)    ((_pp)->fp_bool[(_i)])

Definition at line 56 of file db_fullpath.h.

#define DB_FULL_PATH_SET_BOOL (   _pp,
  _i,
  _j 
)    ((_pp)->fp_bool[(_i)] = _j)

Definition at line 57 of file db_fullpath.h.

#define DB_FP_PRINT_BOOL   0x1 /* print boolean operations */

Append a string representation of the path onto the vls, with options to decorate nodes with additional information.

Definition at line 107 of file db_fullpath.h.

Referenced by db_fullpath_to_vls(), and ged_search().

#define DB_FP_PRINT_TYPE   0x2 /* print object types */

Definition at line 108 of file db_fullpath.h.

Referenced by db_fullpath_to_vls(), and ged_search().

#define DB_FP_PRINT_MATRIX   0x4 /* print notice that a matrix is present */

Definition at line 109 of file db_fullpath.h.

Typedef Documentation

typedef struct resource struct_resource

Definition at line 31 of file db_fullpath.h.