#
# $Id: Null.pm,v 1.2 2002/03/08 10:04:48 fpmip Exp $
#

# Author : Tycho Fruru <tycho@fruru.com>

# Copyright (C) 2001 Tycho Fruru <tycho@fruru.com>
# Copyright (C) 2001 Conostix S.A. Luxembourg - Tycho Fruru <tycho@conostix.com>

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#

package IPFC::Parse::Transport::Null;

use strict;
use warnings;
use IPFC::Log;

sub parse($$$) {
	shift; # current class
	my $entry = shift;
	my $function_name = shift;
	my $template_event = shift;
	
	# make local copies so that we don't pollute any global variables
	my $event = $template_event->clone;

	my $result_event = $function_name->parse($entry,$event);
	
	my $eventgroup = IPFC::EventGroup->new;
	$eventgroup->add_event($result_event);
	
	#IPFC::Log::logger(5,"return value for process_transport_null : $rc\n");
	return $eventgroup;
}

return 1;
