BRL-CAD
Loading...
Searching...
No Matches
Collaboration diagram for Database:

Files

file  database.h
 

Macros

#define GED_CHECK_DATABASE_OPEN(_gedp, _flags)
 

Functions

int ged_path_validate (struct ged *gedp, const struct db_full_path *const path)
 
size_t ged_who_argc (struct ged *gedp)
 
int ged_who_argv (struct ged *gedp, char **start, const char **end)
 
int ged_dbcopy (struct ged *from_gedp, struct ged *to_gedp, const char *from, const char *to, int fflag)
 

Detailed Description

Geometry EDiting Library Database Level Functions.

Macro Definition Documentation

◆ GED_CHECK_DATABASE_OPEN

#define GED_CHECK_DATABASE_OPEN (   _gedp,
  _flags 
)
Value:
if ((_gedp) == GED_NULL || (_gedp)->dbip == DBI_NULL) { \
if ((_gedp) != GED_NULL) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "A database is not open!"); \
} else {\
bu_log("A database is not open!\n"); \
} \
} \
}
Definition dvec.h:74
#define DBI_NULL
#define GED_QUIET
Definition defines.h:67
#define GED_NULL
Definition defines.h:56

Check if a database is open

Definition at line 37 of file database.h.

Function Documentation

◆ ged_path_validate()

int ged_path_validate ( struct ged gedp,
const struct db_full_path *const  path 
)
extern

Checks that each directory in the supplied path actually has the subdirectories that are implied by the path.

◆ ged_who_argc()

size_t ged_who_argc ( struct ged gedp)
extern

Return a count of objects displayed

◆ ged_who_argv()

int ged_who_argv ( struct ged gedp,
char **  start,
const char **  end 
)
extern

Return a list of names of objects displayed

◆ ged_dbcopy()

int ged_dbcopy ( struct ged from_gedp,
struct ged to_gedp,
const char from,
const char to,
int  fflag 
)
extern