Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

arguments.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/prog_utils.h>

Include dependency graph for arguments.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  arguments_struct

Functions

private BOOLEAN arguments_remaining (void)
public int get_n_arguments_remaining (void)
private STRING get_current_argument_string (void)
private void advance_argument (void)
public void initialize_argument_processing (int argc, char *argv[])
public BOOLEAN get_int_argument (int default_value, int *value)
public BOOLEAN get_real_argument (Real default_value, Real *value)
public BOOLEAN get_string_argument (STRING default_value, STRING *value)
public BOOLEAN get_prefix_argument (STRING prefix)

Variables

private arguments_struct arguments


Function Documentation

private void advance_argument void   ) 
 

Definition at line 91 of file arguments.c.

References arguments, arguments_struct::current_arg, and arguments_struct::current_offset_within_arg.

Referenced by get_int_argument(), get_prefix_argument(), get_real_argument(), and get_string_argument().

private BOOLEAN arguments_remaining void   ) 
 

Definition at line 45 of file arguments.c.

References arguments_struct::argc, arguments, and arguments_struct::current_arg.

Referenced by get_int_argument(), get_prefix_argument(), get_real_argument(), and get_string_argument().

private STRING get_current_argument_string void   ) 
 

Definition at line 70 of file arguments.c.

References arguments, arguments_struct::argv, arguments_struct::current_arg, and arguments_struct::current_offset_within_arg.

Referenced by get_int_argument(), get_prefix_argument(), get_real_argument(), and get_string_argument().

public BOOLEAN get_int_argument int  default_value,
int *  value
 

Definition at line 137 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public int get_n_arguments_remaining void   ) 
 

Definition at line 50 of file arguments.c.

References arguments_struct::argc, arguments, and arguments_struct::current_arg.

public BOOLEAN get_prefix_argument STRING  prefix  ) 
 

Definition at line 249 of file arguments.c.

References advance_argument(), arguments, arguments_remaining(), arguments_struct::current_offset_within_arg, FALSE, get_current_argument_string(), and TRUE.

public BOOLEAN get_real_argument Real  default_value,
Real *  value
 

Definition at line 173 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public BOOLEAN get_string_argument STRING  default_value,
STRING *  value
 

Definition at line 213 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public void initialize_argument_processing int  argc,
char *  argv[]
 

Definition at line 112 of file arguments.c.

References arguments_struct::argc, arguments, arguments_struct::argv, arguments_struct::current_arg, and arguments_struct::current_offset_within_arg.


Variable Documentation

private arguments_struct arguments
 

Definition at line 30 of file arguments.c.

Referenced by advance_argument(), arguments_remaining(), get_current_argument_string(), get_n_arguments_remaining(), get_prefix_argument(), and initialize_argument_processing().


Generated on Wed Jul 28 09:10:58 2004 for BICPL by doxygen 1.3.7