global_parser Class Reference

A configuration manager support class: Used to parse a configuration file from the perspective of a global context. More...

#include <rconfig.h>

List of all members.

Public Member Functions

 global_parser (const std::string &a_path, uint16 &a_line, std::istream &a_in)
 C'tor.


Private Member Functions

const std::string location (void)
 Generate a string showing the current location within a configuration file of the parser.

void read_config (const std::string &a_path)
 Read a configuration file, used by the "include" command.

void read_job (const std::string &a_path, job &a_job)
 Read a job configuration file, used by the "include-job" command.

void parse (void)
 Global context parser.

void parse_default (const std::string &a_value)
 Parse a default job context.

void parse_include (const std::string &a_value)
 Parse an "include" command.

void parse_include_job (const std::string &a_value)
 Parse an "include-job" command.

void parse_job (const std::string &a_value)
 Parse a job context.

void parse_link_catalog_dir (const std::string &a_value)
 Parse a "link-catalog-dir" command.

void parse_log_dir (const std::string &a_value)
 Parse a "log-dir" command.

void parse_logging_level (const std::string &a_value)
 Parse a "loging-level" command.

void parse_rsync_local_path (const std::string &a_value)
 Parse an "rsync-local-path" command.

void parse_rsync_parallel (const std::string &a_value)
 Parse an "rsync-parallel" command.

void parse_io_poll_interval (const std::string &a_value)
 Parse "io-poll-interval" command.

void parse_timestamp_resolution (const std::string &a_value)
 Parse a "timestamp-resolution" command.

void parse_vault (const std::string &a_value)
 Parse a "vault" command.

void parse_vault_overflow_behavior (const std::string &a_value)
 Parse a "vault-overflow-behavior" command.

void parse_vault_overflow_blocks (const std::string &a_value)
 Parse a "vault-overflow-blocks" command.

void parse_vault_overflow_inodes (const std::string &a_value)
 Parse a "vault-overflow-inodes" command.

void parse_vault_selection_behavior (const std::string &a_value)
 Parse a "vault-selection-behavior" command.


Private Attributes

const std::string * m_path
std::istream * m_in
uint16 * m_line


Detailed Description

A configuration manager support class: Used to parse a configuration file from the perspective of a global context.

Definition at line 295 of file rconfig.h.


Constructor & Destructor Documentation

global_parser::global_parser const std::string &  a_path,
uint16 &  a_line,
std::istream &  a_in
 

C'tor.

Definition at line 1514 of file rconfig.cc.


Member Function Documentation

const std::string global_parser::location void   )  [private]
 

Generate a string showing the current location within a configuration file of the parser.

Definition at line 1529 of file rconfig.cc.

void global_parser::parse void   )  [private]
 

Global context parser.

Definition at line 1588 of file rconfig.cc.

References m_in, and parse_line().

Here is the call graph for this function:

void global_parser::parse_default const std::string &  a_value  )  [private]
 

Parse a default job context.

Definition at line 1696 of file rconfig.cc.

References config.

void global_parser::parse_include const std::string &  a_value  )  [private]
 

Parse an "include" command.

Definition at line 1716 of file rconfig.cc.

References ERROR, and TRY_nomem.

void global_parser::parse_include_job const std::string &  a_value  )  [private]
 

Parse an "include-job" command.

Definition at line 1769 of file rconfig.cc.

References ERROR, and TRY_nomem.

void global_parser::parse_io_poll_interval const std::string &  a_value  )  [private]
 

Parse "io-poll-interval" command.

Definition at line 1928 of file rconfig.cc.

References config.

void global_parser::parse_job const std::string &  a_value  )  [private]
 

Parse a job context.

Definition at line 1827 of file rconfig.cc.

References config.

void global_parser::parse_link_catalog_dir const std::string &  a_value  )  [private]
 

Parse a "link-catalog-dir" command.

Definition at line 1850 of file rconfig.cc.

References config.

void global_parser::parse_log_dir const std::string &  a_value  )  [private]
 

Parse a "log-dir" command.

Definition at line 1863 of file rconfig.cc.

References config.

void global_parser::parse_logging_level const std::string &  a_value  )  [private]
 

Parse a "loging-level" command.

Definition at line 1876 of file rconfig.cc.

References config.

void global_parser::parse_rsync_local_path const std::string &  a_value  )  [private]
 

Parse an "rsync-local-path" command.

Definition at line 1900 of file rconfig.cc.

References config.

void global_parser::parse_rsync_parallel const std::string &  a_value  )  [private]
 

Parse an "rsync-parallel" command.

Definition at line 1913 of file rconfig.cc.

References config.

void global_parser::parse_timestamp_resolution const std::string &  a_value  )  [private]
 

Parse a "timestamp-resolution" command.

Definition at line 1943 of file rconfig.cc.

References config.

void global_parser::parse_vault const std::string &  a_value  )  [private]
 

Parse a "vault" command.

Definition at line 1976 of file rconfig.cc.

References config.

void global_parser::parse_vault_overflow_behavior const std::string &  a_value  )  [private]
 

Parse a "vault-overflow-behavior" command.

Definition at line 2049 of file rconfig.cc.

References config.

void global_parser::parse_vault_overflow_blocks const std::string &  a_value  )  [private]
 

Parse a "vault-overflow-blocks" command.

Definition at line 2073 of file rconfig.cc.

References config.

void global_parser::parse_vault_overflow_inodes const std::string &  a_value  )  [private]
 

Parse a "vault-overflow-inodes" command.

Definition at line 2088 of file rconfig.cc.

References config.

void global_parser::parse_vault_selection_behavior const std::string &  a_value  )  [private]
 

Parse a "vault-selection-behavior" command.

Definition at line 2103 of file rconfig.cc.

References config.

void global_parser::read_config const std::string &  a_path  )  [private]
 

Read a configuration file, used by the "include" command.

Definition at line 1543 of file rconfig.cc.

References ERROR, and TRY_nomem.

void global_parser::read_job const std::string &  a_path,
job a_job
[private]
 

Read a job configuration file, used by the "include-job" command.

Definition at line 1564 of file rconfig.cc.

References ERROR, and TRY_nomem.


Member Data Documentation

std::istream* global_parser::m_in [private]
 

Definition at line 306 of file rconfig.h.

Referenced by parse().

uint16* global_parser::m_line [private]
 

Definition at line 307 of file rconfig.h.

const std::string* global_parser::m_path [private]
 

Definition at line 305 of file rconfig.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 12 12:10:35 2004 for rvm by doxygen 1.3.6