BRL-CAD
find.c File Reference
#include "common.h"
#include <string.h>
#include "bu/cmd.h"
#include "bu/getopt.h"
#include "./ged_private.h"
Include dependency graph for find.c:

Go to the source code of this file.

Functions

HIDDEN void find_ref (struct db_i *dbip, struct rt_comb_internal *comb, union tree *comb_leaf, void *object, void *comb_name_ptr, void *user_ptr3, void *user_ptr4)
 
int ged_find (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

The find command.

Definition in file find.c.

Function Documentation

HIDDEN void find_ref ( struct db_i dbip,
struct rt_comb_internal comb,
union tree comb_leaf,
void *  object,
void *  comb_name_ptr,
void *  user_ptr3,
void *  user_ptr4 
)

Definition at line 37 of file find.c.

References BU_STR_EQUAL, bu_vls_printf(), ged::ged_result_str, RT_CK_COMB, RT_CK_DBI, RT_CK_TREE, tree::tree_db_leaf::tl_name, and tree::tr_l.

Referenced by ged_find().

Here is the call graph for this function:

int ged_find ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find combinations that reference object

Definition at line 64 of file find.c.

References bu_getopt(), bu_optind, bu_vls_printf(), bu_vls_trunc(), directory::d_flags, directory::d_forw, directory::d_namep, db_tree_funcleaf(), db_i::dbi_Head, rt_wdb::dbip, find_ref(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, rt_db_internal::idb_ptr, rt_db_free_internal(), rt_db_get_internal(), RT_DBNHASH, RT_DIR_COMB, RT_DIR_HIDDEN, RT_DIR_NULL, rt_uniresource, rt_comb_internal::tree, and usage().

Here is the call graph for this function: