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

PathExpression Class Reference

#include <expression.h>

Inherits Expression.

List of all members.

Public Methods

 PathExpression (const Path &path)
bool eval (const LogRecord &r) const
void print (ostream &os) const

Private Attributes

Path path_


Constructor & Destructor Documentation

PathExpression::PathExpression ( const Path & path ) [inline]
 

Definition at line 23 of file expression.h.

00023 : path_(path) {}


Member Function Documentation

bool PathExpression::eval ( const LogRecord & r ) const [virtual]
 

Reimplemented from Expression.

Definition at line 23 of file expression.C.

00023                                              {
00024 const string& ps(r.path().str());
00025 if (ps.size() < path_.str().size())
00026   return false;
00027 return equal(path_.str().begin(), path_.str().end(), ps.begin());
00028 }

void PathExpression::print ( ostream & os ) const [virtual]
 

Reimplemented from Expression.

Definition at line 31 of file expression.C.

00031                                        {
00032 os << "path " << path_;
00033 }


Member Data Documentation

Path PathExpression::path_ [private]
 

Definition at line 27 of file expression.h.


The documentation for this class was generated from the following files:
httpstats-stage03 [ 7 April, 2001]