28 #ifndef GED_DATABASE_H
29 #define GED_DATABASE_H
37 #define GED_CHECK_DATABASE_OPEN(_gedp, _flags) \
38 if ((_gedp) == GED_NULL || (_gedp)->dbip == DBI_NULL) { \
39 int ged_check_database_open_quiet = (_flags) & GED_QUIET; \
40 if (!ged_check_database_open_quiet) { \
41 if ((_gedp) != GED_NULL) { \
42 bu_vls_trunc((_gedp)->ged_result_str, 0); \
43 bu_vls_printf((_gedp)->ged_result_str, "A database is not open!"); \
45 bu_log("A database is not open!\n"); \
54 GED_EXPORT
extern int ged_title(
struct ged *gedp,
int argc,
const char *argv[]);
65 GED_EXPORT
extern int ged_who_argv(
struct ged *gedp,
char **start,
const char **end);
71 GED_EXPORT
extern int ged_tops(
struct ged *gedp,
int argc,
const char *argv[]);
76 GED_EXPORT
extern int ged_dbip(
struct ged *gedp,
int argc,
const char *argv[]);
82 GED_EXPORT
extern int ged_dump(
struct ged *gedp,
int argc,
const char *argv[]);
87 GED_EXPORT
extern int ged_find(
struct ged *gedp,
int argc,
const char *argv[]);
92 GED_EXPORT
extern int ged_glob(
struct ged *gedp,
int argc,
const char *argv[]);
97 GED_EXPORT
extern int ged_concat(
struct ged *gedp,
int argc,
const char *argv[]);
102 GED_EXPORT
extern int ged_dup(
struct ged *gedp,
int argc,
const char *argv[]);
107 GED_EXPORT
extern int ged_edcolor(
struct ged *gedp,
int argc,
const char *argv[]);
112 GED_EXPORT
extern int ged_editit(
struct ged *gedp,
int argc,
const char *argv[]);
117 GED_EXPORT
extern int ged_ls(
struct ged *gedp,
int argc,
const char *argv[]);
127 GED_EXPORT
extern int ged_pathsum(
struct ged *gedp,
int argc,
const char *argv[]);
143 GED_EXPORT
extern int ged_rmap(
struct ged *gedp,
int argc,
const char *argv[]);
148 GED_EXPORT
extern int ged_tol(
struct ged *gedp,
int argc,
const char *argv[]);
153 GED_EXPORT
extern int ged_units(
struct ged *gedp,
int argc,
const char *argv[]);
158 GED_EXPORT
extern int ged_version(
struct ged *gedp,
int argc,
const char *argv[]);
163 GED_EXPORT
extern int ged_wcodes(
struct ged *gedp,
int argc,
const char *argv[]);
175 GED_EXPORT
extern int ged_expand(
struct ged *gedp,
int argc,
const char *argv[]);
180 GED_EXPORT
extern int ged_item(
struct ged *gedp,
int argc,
const char *argv[]);
185 GED_EXPORT
extern int ged_reopen(
struct ged *gedp,
int argc,
const char *argv[]);
190 GED_EXPORT
extern int ged_rcodes(
struct ged *gedp,
int argc,
const char *argv[]);
195 GED_EXPORT
extern int ged_regdef(
struct ged *gedp,
int argc,
const char *argv[]);
200 GED_EXPORT
extern int ged_search(
struct ged *gedp,
int argc,
const char *argv[]);
205 GED_EXPORT
extern int ged_summary(
struct ged *gedp,
int argc,
const char *argv[]);
210 GED_EXPORT
extern int ged_sync(
struct ged *gedp,
int argc,
const char *argv[]);
218 GED_EXPORT
extern int ged_tables(
struct ged *gedp,
int argc,
const char *argv[]);
226 GED_EXPORT
extern int ged_which(
struct ged *gedp,
int argc,
const char *argv[]);
236 GED_EXPORT
extern int ged_color(
struct ged *gedp,
int argc,
const char *argv[]);
241 GED_EXPORT
extern int ged_prcolor(
struct ged *gedp,
int argc,
const char *argv[]);
251 GED_EXPORT
extern int ged_lint(
struct ged *gedp,
int argc,
const char *argv[]);
256 GED_EXPORT
extern int ged_env(
struct ged *gedp,
int argc,
const char *argv[]);
261 GED_EXPORT
extern int ged_process(
struct ged *gedp,
int argc,
const char *argv[]);
Header file for the BRL-CAD common definitions.
int ged_tables(struct ged *gedp, int argc, const char *argv[])
int ged_expand(struct ged *gedp, int argc, const char *argv[])
int ged_item(struct ged *gedp, int argc, const char *argv[])
int ged_rcodes(struct ged *gedp, int argc, const char *argv[])
int ged_process(struct ged *gedp, int argc, const char *argv[])
int ged_rmap(struct ged *gedp, int argc, const char *argv[])
int ged_color(struct ged *gedp, int argc, const char *argv[])
int ged_set_output_script(struct ged *gedp, int argc, const char *argv[])
int ged_find(struct ged *gedp, int argc, const char *argv[])
int ged_regdef(struct ged *gedp, int argc, const char *argv[])
int ged_which_shader(struct ged *gedp, int argc, const char *argv[])
int ged_units(struct ged *gedp, int argc, const char *argv[])
int ged_showmats(struct ged *gedp, int argc, const char *argv[])
int ged_dump(struct ged *gedp, int argc, const char *argv[])
int ged_sync(struct ged *gedp, int argc, const char *argv[])
int ged_ls(struct ged *gedp, int argc, const char *argv[])
int ged_who_argv(struct ged *gedp, char **start, const char **end)
int ged_dbip(struct ged *gedp, int argc, const char *argv[])
int ged_lint(struct ged *gedp, int argc, const char *argv[])
int ged_prcolor(struct ged *gedp, int argc, const char *argv[])
int ged_wcodes(struct ged *gedp, int argc, const char *argv[])
int ged_version(struct ged *gedp, int argc, const char *argv[])
int ged_tops(struct ged *gedp, int argc, const char *argv[])
int ged_pathsum(struct ged *gedp, int argc, const char *argv[])
int ged_edcolor(struct ged *gedp, int argc, const char *argv[])
int ged_concat(struct ged *gedp, int argc, const char *argv[])
int ged_editit(struct ged *gedp, int argc, const char *argv[])
int ged_tol(struct ged *gedp, int argc, const char *argv[])
size_t ged_who_argc(struct ged *gedp)
int ged_which(struct ged *gedp, int argc, const char *argv[])
int ged_dup(struct ged *gedp, int argc, const char *argv[])
int ged_dbcopy(struct ged *from_gedp, struct ged *to_gedp, const char *from, const char *to, int fflag)
int ged_search(struct ged *gedp, int argc, const char *argv[])
int ged_summary(struct ged *gedp, int argc, const char *argv[])
int ged_reopen(struct ged *gedp, int argc, const char *argv[])
int ged_env(struct ged *gedp, int argc, const char *argv[])
int ged_pathlist(struct ged *gedp, int argc, const char *argv[])
int ged_title(struct ged *gedp, int argc, const char *argv[])
int ged_glob(struct ged *gedp, int argc, const char *argv[])
int ged_path_validate(struct ged *gedp, const struct db_full_path *const path)