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

Go to the source code of this file.

Data Structures

struct  identt


#define ABORTED   -99
#define OLDSOLID   0
#define NEWSOLID   1
#define SOL_TABLE   1
#define REG_TABLE   2
#define ID_TABLE   3


HIDDEN int tables_check (char *a, char *b)
HIDDEN size_t tables_sol_number (const matp_t matrix, char *name, size_t *old, size_t *numsol)
HIDDEN void tables_new (struct ged *gedp, struct directory *dp, struct bu_ptbl *cur_path, const fastf_t *old_mat, int flag, size_t *numreg, size_t *numsol)
int ged_tables (struct ged *gedp, int argc, const char *argv[])

Detailed Description

The tables command.

Definition in file tables.c.

Macro Definition Documentation

#define ABORTED   -99

Definition at line 50 of file tables.c.

#define OLDSOLID   0

Definition at line 51 of file tables.c.

#define NEWSOLID   1

Definition at line 52 of file tables.c.

#define SOL_TABLE   1

Definition at line 53 of file tables.c.

Referenced by ged_tables().

#define REG_TABLE   2

Definition at line 54 of file tables.c.

Referenced by ged_tables(), and tables_new().

#define ID_TABLE   3

Definition at line 55 of file tables.c.

Referenced by ged_tables(), and tables_new().

Function Documentation

HIDDEN int tables_check ( char *  a,
char *  b 

Definition at line 63 of file tables.c.

Referenced by tables_sol_number().

HIDDEN size_t tables_sol_number ( const matp_t  matrix,
char *  name,
size_t *  old,
size_t *  numsol 

Definition at line 75 of file tables.c.

References bu_strlcpy, identt::i_index, identt::i_mat, identt::i_name, memset(), and tables_check().

Referenced by tables_new().

Here is the call graph for this function:

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

The ged_tables() function serves idents, regions and solids.

Make ascii summary of region idents.

Definition at line 315 of file tables.c.

References bn_mat_identity, bu_file_delete(), bu_log(), bu_ptbl_free(), bu_ptbl_init(), bu_ptbl_reset(), BU_STR_EQUAL, bu_units_string(), bu_vls_addr(), bu_vls_free(), bu_vls_fwrite(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_strcat(), bu_vls_strcpy(), bu_vls_trunc(), db_lookup(), db_i::dbi_filename, db_i::dbi_local2base, db_i::dbi_title, rt_wdb::dbip, bu_ptbl::end, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, ID_TABLE, LOOKUP_NOISY, REG_TABLE, RT_DIR_NULL, SOL_TABLE, tables_new(), time(), and usage().

Here is the call graph for this function: