PHModule.h
//-----------------------------------------------------------------------------
// $Header: /afs/rhic/phenix/cvsroot/offline/framework/phool/PHModule.h,v 1.12 2001/02/18 00:51:48 dave Exp $
//
// The PHOOL's Software
// Copyright (C) PHENIX collaboration, 1999
//
// Declaration of class PHModule
//
// Purpose: abstract base class for a module
//
//-----------------------------------------------------------------------------
#ifndef PHMODULE_H
#define PHMODULE_H
#include "phool.h"
#include "PHString.h"
class PHNode;
class PHCompositeNode;
class PHModule
{
public:
PHModule ();
virtual ~PHModule ();
public:
const PHString & getName () const
{
return name;
}
virtual PHBoolean event (PHCompositeNode *) = 0;
virtual PHBoolean init ()
{
return True;
}
protected:
PHNode * findFirst (PHCompositeNode *, PHString &, PHString &);
protected:
PHString name;
};
#endif /* PHMODULE_H */