copy.c File Reference
#include "common.h"
#include <string.h>
#include "bu/cmd.h"
#include "bu/units.h"
#include "./ged_private.h"
Include dependency graph for copy.c:

Go to the source code of this file.


int ged_copy (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)

Detailed Description

The copy command.

Definition in file copy.c.

Function Documentation

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

Copy a database object

Definition at line 37 of file copy.c.

References bu_free_external(), bu_vls_printf(), bu_vls_trunc(), directory::d_flags, directory::d_minor_type, db_get_external(), rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_EXISTS, GED_CHECK_READ_ONLY, GED_DB_LOOKUP, GED_ERROR, GED_HELP, GED_OK, GED_QUIET, ged::ged_result_str, ged::ged_wdbp, LOOKUP_NOISY, LOOKUP_QUIET, usage(), and wdb_export_external().

Here is the call graph for this function:

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