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.2 2001/04/12 14:55:55 dvermeir Exp $ 
00004 #include <string>
00005 #include <vector>
00006 #include "date.h"
00007 
00009 class LogRecord {
00010 public:
00011   LogRecord() {}
00012 
00014   bool parse_line(const string& line); 
00015 
00016   const Date& date() const { return date_; }
00017   const vector<string>& path() const { return path_; }
00018   const vector<string>& domain() const { return domain_; }
00019 
00020 private:
00022   bool parse_date(const string& line);
00024   bool parse_path(const string& line);
00026   bool parse_domain(const string& line);
00027 
00028   Date  date_;
00029   vector<string> path_;
00030   vector<string> domain_;
00031 };
00032 
00033 #endif

httpstats-stage01 [ 7 April, 2001]