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_option * options
long begin_pos
long size
int * used_opt_idx
enum cfg_error error_code
char ** prop [CFG_N_PROPS]
long cur_idx
long cur_idx_tmp
int cur_opt_type
char * cur_opt
char * cur_arg
Command line specific properties
int parsing_started:1
char ** argv
Config file specific properties.
char * filename
FILE * fhandle


Detailed Description

Main structure for defining context.


Field Documentation

char** cfg_context::argv
 

NULL terminated array of argument

long cfg_context::begin_pos
 

Starting parsing position

char* cfg_context::cur_arg
 

Current option argument

long cfg_context::cur_idx
 

Currents

long cfg_context::cur_idx_tmp
 

Context type (command line or config file)

char* cfg_context::cur_opt
 

Current option string

int cfg_context::cur_opt_type
 

Context type (command line or config file)

enum cfg_error cfg_context::error_code
 

Error code of last occured error.

FILE* cfg_context::fhandle
 

Pointer to FILE* structure of parsed file

char* cfg_context::filename
 

Filename (name of file)

int cfg_context::flags
 

Flags

const struct cfg_option* cfg_context::options
 

Options table

int cfg_context::parsing_started
 

Flag to detect if parsing already started

char** cfg_context::prop[CFG_N_PROPS]
 

Special properties

long cfg_context::size
 

Number of elements (array arguments, bytes or lines) to parse (value of -1 means infinite)

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 Mon Jul 29 15:29:56 2002 for libcfg+ by doxygen1.2.15