Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

logrecord.h

Go to the documentation of this file.
00001 #ifndef LOGRECORD_H
00002 #define LOGRECORD_H
00003 // $Id: logrecord_h-source.html,v 1.1 2001/04/16 17:43:02 dvermeir Exp $ 
00004 #include <string>
00005 #include <vector>
00006 #include "datepattern.h"
00007 #include "path.h"
00008 #include "domain.h"
00009 
00010 class Configuration;
00011 
00012 class LogRecord {
00013 public:
00014   LogRecord() {}
00015 
00017   bool parse_line(const string& line,const Configuration& conf); 
00018 
00019   const DatePattern& date() const { return date_; }
00020   const Path& path() const { return path_; }
00021   const Domain& domain() const { return domain_; }
00022 
00023 private:
00025   bool parse_date(const string& line);
00027   bool parse_path(const string& line);
00029   bool parse_domain(const string& line);
00030 
00031   DatePattern    date_;
00032   Path   path_;
00033   Domain domain_;
00034 };
00035 
00036 #endif

httpstats-stage04 [ 7 April, 2001]