55#define DB_OPEN_READONLY "r"
60#define DB_OPEN_READWRITE "rw"
83RT_EXPORT
extern struct db_i *
100RT_EXPORT
extern struct db_i *
193 const unsigned char hidden,
249 const struct db_i *dbip,
266 const struct db_i *dbip,
323 const unsigned char *cp,
336 const unsigned char *cp,
338#if defined(USE_BINARY_ATTRIBUTES)
342RT_EXPORT
extern void decode_binary_attribute(
const size_t len,
343 const unsigned char *cp);
375 const unsigned char *ip);
540 const struct db_i *dbip);
567 int (*handler)(
struct db_i *,
576#define db_ident(a, b, c) +++error+++
674 void (*handler)(
struct db_i *,
680 void (*handler)(
struct db_i *,
843 unsigned char major_type,
844 unsigned char minor_type,
845 unsigned char name_hidden,
846 size_t object_length,
883 const char *newname);
975 const char *descrip);
Header file for the BRL-CAD common definitions.
Definition of the BRL-CAD "v5" database format used for new ".g" files.
void db5_make_free_object_hdr(struct bu_external *ep, size_t length)
int db_put_external(struct bu_external *ep, struct directory *dp, struct db_i *dbip)
void db5_import_color_table(char *cp)
int db_get_external(struct bu_external *ep, const struct directory *dp, const struct db_i *dbip)
void db5_make_free_object(struct bu_external *ep, size_t length)
int db_wrap_v5_external(struct bu_external *ep, const char *name)
void db_close(struct db_i *dbip)
struct db_i * db_create_inmem(void)
int db5_write_free(struct db_i *dbip, struct directory *dp, size_t length)
void db_close_client(struct db_i *dbip, long *client)
struct directory * db5_diradd(struct db_i *dbip, const struct db5_raw_internal *rip, b_off_t laddr, void *client_data)
int db_version_inmem(struct db_i *dbip, const void *data, b_off_t data_size)
int db_update_ident(struct db_i *dbip, const char *title, double local2mm)
struct rt_i * rt_dirbuild_inmem(const void *data, b_off_t data_size, char *buf, int len)
int db_scan(struct db_i *, int(*handler)(struct db_i *, const char *name, b_off_t addr, size_t nrec, int flags, void *client_data), int do_old_matter, void *client_data)
int db5_type_descrip_from_major(char **descrip, const int major)
int db_rename(struct db_i *, struct directory *, const char *newname)
size_t db5_decode_length(size_t *lenp, const unsigned char *cp, int format)
int db_dirbuild(struct db_i *dbip)
int db5_type_tag_from_major(char **tag, const int major)
int db5_type_tag_from_codes(char **tag, const int major, const int minor)
size_t db5_type_sizeof_h_binu(const int minor)
int rt_db_put_internal5(struct directory *dp, struct db_i *dbip, struct rt_db_internal *ip, struct resource *resp, const int major)
int db_flags_raw_internal(const struct db5_raw_internal *intern)
struct directory * db_lookup(const struct db_i *, const char *name, int noisy)
int db_delete(struct db_i *, struct directory *dp)
int db_dirhash(const char *str)
struct rt_i * rt_dirbuild(const char *filename, char *buf, int len)
int db_write(struct db_i *dbip, const void *addr, size_t count, b_off_t offset)
struct directory * db_diradd5(struct db_i *dbip, const char *name, b_off_t laddr, unsigned char major_type, unsigned char minor_type, unsigned char name_hidden, size_t object_length, struct bu_attribute_value_set *avs)
int rt_db_external5_to_internal5(struct rt_db_internal *ip, const struct bu_external *ep, const char *name, const struct db_i *dbip, const mat_t mat, struct resource *resp)
void rt_alloc_seg_block(struct resource *res)
struct db_i * db_open_inmem(void)
int db_dirbuild_inmem(struct db_i *dbip, const void *data, b_off_t data_size)
int db_v4_get_units_code(const char *str)
int db_alloc(struct db_i *, struct directory *dp, size_t count)
union record * db_getmrec(const struct db_i *, const struct directory *dp)
int db_dirdelete(struct db_i *, struct directory *dp)
int db_put(struct db_i *, const struct directory *dp, union record *where, b_off_t offset, size_t len)
int db5_scan_inmem(struct db_i *dbip, void(*handler)(struct db_i *, const struct db5_raw_internal *, b_off_t addr, void *client_data), void *client_data, const void *data, b_off_t data_size)
int db5_realloc(struct db_i *dbip, struct directory *dp, struct bu_external *ep)
int db5_fwrite_ident(FILE *, const char *, double)
const unsigned char * db5_get_raw_internal_ptr(struct db5_raw_internal *rip, const unsigned char *ip)
struct directory * db_diradd(struct db_i *, const char *name, b_off_t laddr, size_t len, int flags, void *ptr)
int db_put_external5(struct bu_external *ep, struct directory *dp, struct db_i *dbip)
int db_fwrite_external(FILE *fp, const char *name, struct bu_external *ep)
int db5_select_length_encoding(size_t len)
int rt_db_flip_endian(struct db_i *dbip)
void db_sync(struct db_i *dbip)
int db_zapper(struct db_i *, struct directory *dp, size_t start)
int rt_db_cvt_to_external5(struct bu_external *ext, const char *name, const struct rt_db_internal *ip, double conv2mm, struct db_i *dbip, struct resource *resp, const int major)
int db_get(const struct db_i *, const struct directory *dp, union record *where, b_off_t offset, size_t len)
void db_update_nref(struct db_i *dbip, struct resource *resp)
int db_dump(struct rt_wdb *wdbp, struct db_i *dbip)
int db_flags_internal(const struct rt_db_internal *intern)
void db_ck_directory(const struct db_i *dbip)
size_t db5_decode_signed(size_t *lenp, const unsigned char *cp, int format)
int db5_type_codes_from_tag(int *major, int *minor, const char *tag)
int db5_type_codes_from_descrip(int *major, int *minor, const char *descrip)
void db_pr_dir(const struct db_i *dbip)
int db5_get_raw_internal_fp(struct db5_raw_internal *rip, FILE *fp)
int db_delrec(struct db_i *, struct directory *dp, int recnum)
void db_conversions(struct db_i *, int units)
void db_inmem(struct directory *dp, struct bu_external *ext, int flags, struct db_i *dbip)
int rt_db_get_internal5(struct rt_db_internal *ip, const struct directory *dp, const struct db_i *dbip, const mat_t mat, struct resource *resp)
struct db_i * db_create(const char *name, int version)
int db_is_directory_non_empty(const struct db_i *dbip)
struct db_i * db_open(const char *name, const char *mode)
struct db_i * db_clone_dbi(struct db_i *dbip, long *client)
int db5_header_is_valid(const unsigned char *hp)
int db_version(struct db_i *dbip)
void db_alloc_directory_block(struct resource *resp)
unsigned char * db5_encode_length(unsigned char *cp, size_t val, int format)
int db_dircheck(struct db_i *dbip, struct bu_vls *ret_name, int noisy, struct directory ***headp)
int db5_type_descrip_from_codes(char **descrip, const int major, const int minor)
void db5_export_object3(struct bu_external *out, int dli, const char *name, const unsigned char hidden, const struct bu_external *attrib, const struct bu_external *body, int major, int minor, int a_zzz, int b_zzz)
int db5_scan(struct db_i *dbip, void(*handler)(struct db_i *, const struct db5_raw_internal *, b_off_t addr, void *client_data), void *client_data)
size_t db5_type_sizeof_n_binu(const int minor)
size_t db_directory_size(const struct db_i *dbip)
int db_fwrite_ident(FILE *fp, const char *title, double local2mm)
void db_wrap_v4_external(struct bu_external *op, const char *name)
void int char int * length
fastf_t mat_t[ELEMENTS_PER_MAT]
4x4 matrix
void * ptr
ptr to in-memory-only obj
fundamental vector, matrix, quaternion math macros