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

Go to the source code of this file.

Data Structures

struct  ged_search
 

Functions

HIDDEN int _path_scrub (struct bu_vls *path)
 
HIDDEN void _ged_free_search_set (struct bu_ptbl *search_set)
 
HIDDEN int _ged_plan_item (char *arg)
 
HIDDEN int _ged_search_characterize_path (struct ged *gedp, const char *orig, struct bu_vls *normalized, int *is_specific, int *is_local, int *is_flat, int *flat_only)
 
HIDDEN int _ged_search_localized_obj_list (struct ged *gedp, struct directory *path, struct directory ***path_list)
 
int ged_search (struct ged *gedp, int argc, const char *argv_orig[])
 

Detailed Description

GED wrapper around librt search functions

Definition in file search.c.

Function Documentation

HIDDEN int _path_scrub ( struct bu_vls path)

Definition at line 51 of file search.c.

References bu_basename(), bu_calloc(), bu_free(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_sprintf(), and db_normalize().

Referenced by _ged_search_characterize_path().

Here is the call graph for this function:

HIDDEN void _ged_free_search_set ( struct bu_ptbl search_set)

Definition at line 81 of file search.c.

References bu_free(), bu_ptbl_free(), BU_PTBL_GET, BU_PTBL_LEN, and ged_search::paths.

Referenced by ged_search().

Here is the call graph for this function:

HIDDEN int _ged_plan_item ( char *  arg)

Definition at line 108 of file search.c.

Referenced by ged_search().

HIDDEN int _ged_search_characterize_path ( struct ged gedp,
const char *  orig,
struct bu_vls normalized,
int *  is_specific,
int *  is_local,
int *  is_flat,
int *  flat_only 
)

Definition at line 128 of file search.c.

References _path_scrub(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_nibble(), bu_vls_printf(), bu_vls_sprintf(), bu_vls_strlen(), db_lookup(), rt_wdb::dbip, ged::ged_wdbp, LOOKUP_QUIET, and RT_DIR_NULL.

Referenced by ged_search().

Here is the call graph for this function:

HIDDEN int _ged_search_localized_obj_list ( struct ged gedp,
struct directory path,
struct directory ***  path_list 
)

Definition at line 177 of file search.c.

References BU_ALLOC, bu_free(), bu_malloc(), bu_ptbl_free(), BU_PTBL_GET, BU_PTBL_LEN, db_search(), DB_SEARCH_RETURN_UNIQ_DP, rt_wdb::dbip, ged::ged_wdbp, and RT_DIR_NULL.

Referenced by ged_search().

Here is the call graph for this function: