BRL-CAD
#include "common.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "bnetwork.h"
#include "bu/endian.h"
#include "bu/parse.h"
#include "bu/cv.h"
#include "vmath.h"
#include "bn.h"
#include "db5.h"
#include "raytrace.h"
#include "mater.h"
Include dependency graph for db5_io.c:

Go to the source code of this file.

Functions

int db5_header_is_valid (const unsigned char *hp)
 
int db5_select_length_encoding (size_t len)
 
size_t db5_decode_length (size_t *lenp, const unsigned char *cp, int format)
 
int db5_decode_signed (size_t *lenp, const unsigned char *cp, int format)
 
unsigned char * db5_encode_length (unsigned char *cp, size_t val, int format)
 
int db5_crack_disk_header (struct db5_raw_internal *rip, const unsigned char *cp)
 
const unsigned char * db5_get_raw_internal_ptr (struct db5_raw_internal *rip, const unsigned char *ip)
 
int db5_get_raw_internal_fp (struct db5_raw_internal *rip, FILE *fp)
 
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)
 
void db5_make_free_object_hdr (struct bu_external *ep, size_t length)
 
void db5_make_free_object (struct bu_external *ep, size_t length)
 
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_wrap_v5_external (struct bu_external *ep, const char *name)
 
int db_put_external5 (struct bu_external *ep, struct directory *dp, struct db_i *dbip)
 
int rt_db_put_internal5 (struct directory *dp, struct db_i *dbip, struct rt_db_internal *ip, struct resource *resp, const int major)
 
int rt_binunif_import5_minor_type (struct rt_db_internal *, const struct bu_external *, const mat_t, const struct db_i *, struct resource *, int)
 
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)
 
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)
 
void db5_export_color_table (struct bu_vls *ostr, struct db_i *dbip)
 
void db5_import_color_table (char *cp)
 
int db5_put_color_table (struct db_i *dbip)
 
int db5_get_attributes (const struct db_i *dbip, struct bu_attribute_value_set *avs, const struct directory *dp)
 

Detailed Description

Handle import/export and IO of v5 database objects.

Definition in file db5_io.c.