Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

cfg_context Struct Reference

Main structure for defining context. More...

#include <cfg+.h>


Data Fields

Shared properties
enum cfg_context_type type
int flags
const struct cfg_optionoptions
int * used_opt_idx
enum cfg_error error_code
char ** prop [CFG_N_PROPS]
Command line specific properties
int argc
char ** argv
int cur_idx
int cur_idx_tmp
int cur_opt_type
char * cur_opt
char * cur_arg
Config file specific properties.
long begin_pos
long end_pos
char * filename
FILE * fhandle


Detailed Description

Main structure for defining context.


Field Documentation

enum cfg_error cfg_context::error_code
 

Error code of last occured error.

int cfg_context::flags
 

Flags

const struct cfg_option* cfg_context::options
 

Options table

char** cfg_context::prop[CFG_N_PROPS]
 

Special properties

enum cfg_context_type cfg_context::type
 

Context type (command line or config file)

int* cfg_context::used_opt_idx
 

Array of used options indexes


The documentation for this struct was generated from the following file:
Generated on Wed Jun 12 00:51:17 2002 for libcfg+ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001