parse.c File Reference

#include "common.h"
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <strings.h>
#include "machine.h"
#include "vmath.h"
#include "bu.h"
#include "raytrace.h"

Include dependency graph for parse.c:

Go to the source code of this file.

Functions

HIDDEN void bu_matprint (const char *name, register const matp_t mat)
void bu_structprint (const char *title, const struct bu_structparse *parsetab, const char *base)
HIDDEN int bu_parse_double (const char *str, long int count, double *loc)
HIDDEN int bu_struct_lookup (register const struct bu_structparse *sdp, register const char *name, char *base, const char *value)
int bu_structparse (const struct bu_vls *in_vls, const struct bu_structparse *desc, char *base)
HIDDEN void bu_vls_item_print_core (struct bu_vls *vp, const struct bu_structparse *sdp, const char *base, char sep_char)
void bu_vls_item_print (struct bu_vls *vp, const struct bu_structparse *sdp, const char *base)
void bu_vls_item_print_nc (struct bu_vls *vp, const struct bu_structparse *sdp, const char *base)
int bu_vls_name_print (struct bu_vls *vp, const struct bu_structparse *parsetab, const char *name, const char *base)
int bu_vls_name_print_nc (struct bu_vls *vp, const struct bu_structparse *parsetab, const char *name, const char *base)
HIDDEN void bu_vls_print_double (struct bu_vls *vls, const char *name, register long int count, register const double *dp)
void bu_vls_structprint (struct bu_vls *vls, register const struct bu_structparse *sdp, const char *base)


Detailed Description

Routines to assign values to elements of arbitrary structures. The layout of a structure to be processed is described by a structure of type "structparse", giving element names, element formats, an offset from the beginning of the structure, and a pointer to an optional "hooked" function that is called whenever that structure element is changed.

Authors - Michael John Muuss Lee A. Butler

Source - SECAD/VLD Computing Consortium, Bldg 394 The U. S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005

Definition in file parse.c.


Function Documentation

HIDDEN void bu_matprint const char *  name,
register const matp_t  mat
 

Definition at line 75 of file parse.c.

References bu_log(), and bu_log_indent_delta().

Here is the call graph for this function:

void bu_structprint const char *  title,
const struct bu_structparse parsetab,
const char *  base
 

Definition at line 102 of file parse.c.

References bu_log(), bu_vls_init(), NULL, bu_structparse::sp_count, bu_structparse::sp_fmt, bu_structparse::sp_name, and bu_structparse::sp_offset.

Referenced by bu_structparse().

Here is the call graph for this function:

HIDDEN int bu_parse_double const char *  str,
long int  count,
double *  loc
 

Definition at line 254 of file parse.c.

HIDDEN int bu_struct_lookup register const struct bu_structparse sdp,
register const char *  name,
char *  base,
const char *  value
 

Definition at line 320 of file parse.c.

References bu_struct_lookup().

Here is the call graph for this function:

int bu_structparse const struct bu_vls in_vls,
const struct bu_structparse desc,
char *  base
 

Definition at line 484 of file parse.c.

References BU_CK_VLS, bu_log(), bu_struct_lookup(), bu_structprint(), bu_vls_addr(), bu_vls_free(), bu_vls_init(), bu_vls_vlscat(), name, NULL, and value.

Here is the call graph for this function:

HIDDEN void bu_vls_item_print_core struct bu_vls vp,
const struct bu_structparse sdp,
const char *  base,
char  sep_char
 

Definition at line 575 of file parse.c.

References bu_log(), bu_vls_printf(), bu_vls_vlscat(), NULL, bu_structparse::sp_count, bu_structparse::sp_fmt, bu_structparse::sp_name, and bu_structparse::sp_offset.

Referenced by bu_vls_item_print(), and bu_vls_item_print_nc().

Here is the call graph for this function:

void bu_vls_item_print struct bu_vls vp,
const struct bu_structparse sdp,
const char *  base
 

Definition at line 663 of file parse.c.

References bu_vls_item_print_core().

Referenced by bu_vls_name_print().

Here is the call graph for this function:

void bu_vls_item_print_nc struct bu_vls vp,
const struct bu_structparse sdp,
const char *  base
 

Definition at line 678 of file parse.c.

References bu_vls_item_print_core().

Referenced by bu_vls_name_print_nc().

Here is the call graph for this function:

int bu_vls_name_print struct bu_vls vp,
const struct bu_structparse parsetab,
const char *  name,
const char *  base
 

Definition at line 692 of file parse.c.

References bu_vls_item_print(), NULL, and bu_structparse::sp_name.

Here is the call graph for this function:

int bu_vls_name_print_nc struct bu_vls vp,
const struct bu_structparse parsetab,
const char *  name,
const char *  base
 

Definition at line 711 of file parse.c.

References bu_vls_item_print_nc(), NULL, and bu_structparse::sp_name.

Here is the call graph for this function:

HIDDEN void bu_vls_print_double struct bu_vls vls,
const char *  name,
register long int  count,
register const double *  dp
 

Definition at line 729 of file parse.c.

References bu_vls_extend(), bu_vls::vls_len, bu_vls::vls_offset, and bu_vls::vls_str.

Here is the call graph for this function:

void bu_vls_structprint struct bu_vls vls,
register const struct bu_structparse sdp,
const char *  base
 

Definition at line 756 of file parse.c.

References BU_CK_VLS, bu_log(), bu_vls_free(), bu_vls_init(), bu_vls_vlscat(), and NULL.

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:04 2006 for BRL-CAD by  doxygen 1.4.6