bo.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "bu/getopt.h"
#include "ged.h"
Include dependency graph for bo.c:

Go to the source code of this file.


int ged_bo (struct ged *gedp, int argc, const char *argv[])

Detailed Description

The 'bo' binary object command, used for importing and exporting between files and binary objects stored in a geometry database.

Definition in file bo.c.

Function Documentation

int ged_bo ( struct ged gedp,
int  argc,
const char *  argv[] 

Manipulate opaque binary objects. Must specify one of -i (for creating or adjusting objects (input)) or -o for extracting objects (output). If the major type is "u" the minor type must be one of: "f" -> float "d" -> double "c" -> char (8 bit) "s" -> short (16 bit) "i" -> int (32 bit) "l" -> long (64 bit) "C" -> unsigned char (8 bit) "S" -> unsigned short (16 bit) "I" -> unsigned int (32 bit) "L" -> unsigned long (64 bit) For input, source is a file name and dest is an object name. For output source is an object name and dest is a file name. Only uniform array binary objects (major_type=u) are currently supported}}

Definition at line 38 of file bo.c.

References bu_getopt(), bu_opterr, bu_optind, bu_vls_printf(), bu_vls_trunc(), rt_binunif_internal::count, directory::d_major_type, directory::d_namep, db5_type_sizeof_h_binu(), db_lookup(), db_version(), rt_wdb::dbip, file_name, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_EXISTS, GED_CHECK_READ_ONLY, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, rt_db_internal::idb_ptr, if(), rt_binunif_internal::int8, LOOKUP_NOISY, LOOKUP_QUIET, RT_CK_DB_INTERNAL, rt_db_free_internal(), rt_db_get_internal(), RT_DIR_NULL, rt_mk_binunif(), rt_uniresource, rt_binunif_internal::type, rt_binunif_internal::u, and usage().

Here is the call graph for this function: