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
enum cfg_error error_code
char ** quote_prefix
char ** quote_postfix
Command line specific properties
int argc
char ** argv
int cur_idx
int cur_idx_tmp
int * used_opt_idx
int cur_opt_type
char * cur_opt
char * cur_arg
char ** line_stop_str
char ** short_option_prefix
char ** long_option_prefix
char ** line_option_arg_separator
char ** line_multi_vals_separator
Config file specific properties.
long begin_pos
long end_pos
char * filename
FILE * fhandle
char ** file_stop_prefix
char ** comment_prefix
char ** multi_line_postfix
char ** file_option_arg_separator
char ** file_multi_vals_separator


Detailed Description

Main structure for defining context.


Field Documentation

char** cfg_context::comment_prefix
 

Array of string prefixes which mark comment line. defaults: "#", ";"

enum cfg_error cfg_context::error_code
 

Error code of last occured error.

char** cfg_context::file_multi_vals_separator
 

Multi values separator.

char** cfg_context::file_option_arg_separator
 

Option argument separator. default: "="

char** cfg_context::file_stop_prefix
 

Array of strings prefixes which forces to stop config file parsing. default: "["

int cfg_context::flags
 

Flags

char** cfg_context::line_multi_vals_separator
 

Multi values separator.

char** cfg_context::line_option_arg_separator
 

default: "="

char** cfg_context::line_stop_str
 

Array of strings which forces to stop command line parsing.

char** cfg_context::long_option_prefix
 

default: "--"

char** cfg_context::multi_line_postfix
 

Array of string postfixes to determine multi lines.

const struct cfg_option* cfg_context::options
 

Options table

char** cfg_context::quote_postfix
 

Context type (command line or config file)

char** cfg_context::quote_prefix
 

Quote prefix & postfix

char** cfg_context::short_option_prefix
 

default: "-"

enum cfg_context_type cfg_context::type
 

Context type (command line or config file)


The documentation for this struct was generated from the following file:
Generated on Fri May 24 02:36:13 2002 for libcfg+ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001