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,v 1.1 2001/04/12 15:26:23 dvermeir Exp $ 
00004 #include <string>
00005 #include <vector>
00006 #include "datepattern.h"
00007 #include "path.h"
00008 #include "domain.h"
00009 
00010 class LogRecord {
00011 public:
00012   LogRecord() {}
00013 
00015   bool parse_line(const string& line); 
00016 
00017   const DatePattern& date() const { return date_; }
00018   const Path& path() const { return path_; }
00019   const Domain& domain() const { return domain_; }
00020 
00021 private:
00023   bool parse_date(const string& line);
00025   bool parse_path(const string& line);
00027   bool parse_domain(const string& line);
00028 
00029   DatePattern    date_;
00030   Path   path_;
00031   Domain domain_;
00032 };
00033 
00034 #endif

httpstats-stage03 [ 7 April, 2001]