oasys::LogConfigParser Class Reference

#include <LogConfigParser.h>

List of all members.


Detailed Description

Definition at line 8 of file LogConfigParser.h.

Public Member Functions

 LogConfigParser (const char *filename, RuleSet *rs, Option *opts)
int parse ()
int flags ()

Private Attributes

const char * filename_
RuleSetrs_
Optionopts_
int flags_

Classes

struct  Option


Constructor & Destructor Documentation

oasys::LogConfigParser::LogConfigParser ( const char *  filename,
RuleSet rs,
Option opts 
)

Parameters:
rs RuleSet to add parsed logging entries into.
options Set of options to parse. End of options has option_str_ == 0.

Definition at line 9 of file LogConfigParser.cc.


Member Function Documentation

int oasys::LogConfigParser::parse (  ) 

Returns:
0 if there is no errors in parsing the file.

Definition at line 19 of file LogConfigParser.cc.

References oasys::RuleSet::add_glob_rule(), oasys::RuleSet::add_prefix_rule(), filename_, flags_, oasys::LOG_DEBUG, oasys::LOG_INVALID, oasys::LogConfigParser::Option::option_str_, opts_, rs_, and oasys::str2level().

int oasys::LogConfigParser::flags (  )  [inline]

Returns:
flags Options that were set in the configuration file

Definition at line 32 of file LogConfigParser.h.

References flags_.


Member Data Documentation

const char* oasys::LogConfigParser::filename_ [private]

Definition at line 35 of file LogConfigParser.h.

Referenced by parse().

RuleSet* oasys::LogConfigParser::rs_ [private]

Definition at line 36 of file LogConfigParser.h.

Referenced by parse().

Option* oasys::LogConfigParser::opts_ [private]

Definition at line 37 of file LogConfigParser.h.

Referenced by parse().

int oasys::LogConfigParser::flags_ [private]

Definition at line 38 of file LogConfigParser.h.

Referenced by flags(), and parse().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:06 2006 for DTN Reference Implementation by  doxygen 1.5.1