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

configuration.C

Go to the documentation of this file.
00001 // $Id: configuration.C,v 1.1 2001/04/11 09:23:40 dvermeir Exp $
00002 #include "configuration.h"
00003 
00004 // The data members are set to defaults values. At the moment,
00005 // I don't know yet what the final defaults will be.
00006 Configuration::Configuration(): format_(DATE), max_level_(0) {
00007 }
00008 
00009 bool
00010 Configuration::parse(istream& is) {
00011 /* This is just a test implementation, we arbirarily set format_,
00012    levels_ end max_level_ in order to make testing Stats possible.
00013    I tested by commenting out approriate parts of the code below.
00014 */
00015 /*
00016 // DOMAIN test I tested by commenting out approriate parts of the code below.
00017 format_ = DOMAIN;
00018 levels_.insert(1);
00019 levels_.insert(2);
00020 levels_.insert(3);
00021 max_level_ = 3;
00022 */
00023 /*
00024 // PATH test
00025 format_ = PATH;
00026 levels_.insert(1);
00027 levels_.insert(2);
00028 levels_.insert(3);
00029 levels_.insert(4);
00030 max_level_ = 4;
00031 */
00032 // DATE test
00033 format_ = DATE;
00034 levels_.insert(1);
00035 levels_.insert(2);
00036 levels_.insert(3);
00037 levels_.insert(4);
00038 max_level_ = 3;
00039 
00040 return true;
00041 }

httpstats-stage01 [ 7 April, 2001]