From dd689636c1e82bb0c773f98cc3595c3002b12837 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 19 Jun 2007 21:31:51 +0000 Subject: Adding the possibility to browse and inspect the domains. --- lib/Domain.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Domain.cc b/lib/Domain.cc index eb087f9..6f06476 100644 --- a/lib/Domain.cc +++ b/lib/Domain.cc @@ -17,13 +17,26 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Domain.cc,v 1.3 2007-05-30 11:57:09 pixel Exp $ */ +/* $Id: Domain.cc,v 1.4 2007-06-19 21:31:51 pixel Exp $ */ #include "Domain.h" Domain * Domain::head = 0; +Domain * Domain::First() { + return head; +} + +Domain * Domain::Next() { + return next; +} + +String Domain::GetPattern() { + pattern.GetPattern(); +} + Domain::Domain(const Regex & _pattern) : pattern(_pattern) { + printm(M_INFO, "Creating Domain @ %p, with pattern = " + pattern.GetPattern() + "\n", this); prev = 0; next = head; head = this; -- cgit v1.2.3