BRL-CAD
gcv.c File Reference
#include "bu.h"
#include "gcv_private.h"
Include dependency graph for gcv.c:

Go to the source code of this file.

Data Structures

struct  gcv_context
 
struct  gcv_opts
 
struct  gcv_filter
 

Functions

int gcv_init (struct gcv_context *context)
 
int gcv_destroy (struct gcv_context *context)
 
void gcv_reader (struct gcv_filter *reader, const char *source, const struct gcv_opts *opts)
 
void gcv_writer (struct gcv_filter *writer, const char *target, const struct gcv_opts *opts)
 
int gcv_execute (struct gcv_context *cxt, const struct gcv_filter *filter)
 
int gcv_convert (const char *in_file, const struct gcv_opts *in_opts, const char *out_file, const struct gcv_opts *out_opts)
 
int main (int ac, char **av)
 

Function Documentation

int gcv_init ( struct gcv_context context)

Definition at line 21 of file gcv.c.

References db_create_inmem(), and gcv_context::db_instance.

Referenced by gcv_convert().

Here is the call graph for this function:

int gcv_destroy ( struct gcv_context context)

Definition at line 29 of file gcv.c.

References db_close(), and gcv_context::db_instance.

Referenced by gcv_convert().

Here is the call graph for this function:

void gcv_reader ( struct gcv_filter reader,
const char *  source,
const struct gcv_opts opts 
)

Definition at line 37 of file gcv.c.

References bu_log(), BU_STR_EQUAL, gcv_filter::converter, GCV_CONVERSION_READ, gcv_converter_find(), gcv_filter::name, gcv_filter::options, and gcv_filter::type.

Referenced by gcv_convert().

Here is the call graph for this function:

void gcv_writer ( struct gcv_filter writer,
const char *  target,
const struct gcv_opts opts 
)

Definition at line 59 of file gcv.c.

References bu_log(), BU_STR_EQUAL, gcv_filter::converter, GCV_CONVERSION_WRITE, gcv_converter_find(), gcv_filter::name, gcv_filter::options, and gcv_filter::type.

Referenced by gcv_convert().

Here is the call graph for this function:

int gcv_execute ( struct gcv_context cxt,
const struct gcv_filter filter 
)

Definition at line 81 of file gcv.c.

References bu_bomb(), bu_log(), gcv_filter::converter, db_close(), db_create_inmem(), db_dump(), gcv_context::db_instance, db_i::dbi_wdbp, GCV_CONVERSION_READ, GCV_CONVERSION_WRITE, gcv_filter::name, gcv_filter::options, gcv_converter::reader_fn, gcv_filter::type, and gcv_converter::writer_fn.

Referenced by gcv_convert().

Here is the call graph for this function:

int gcv_convert ( const char *  in_file,
const struct gcv_opts in_opts,
const char *  out_file,
const struct gcv_opts out_opts 
)

Definition at line 124 of file gcv.c.

References bu_exit(), gcv_destroy(), gcv_execute(), gcv_init(), gcv_reader(), and gcv_writer().

Referenced by main().

Here is the call graph for this function:

int main ( int  ac,
char **  av 
)

Definition at line 157 of file gcv.c.

References bu_log(), and gcv_convert().

Here is the call graph for this function: