// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
/** \file
\brief IntervalTimer public header */
-#ifndef HH_IntervalTimer_
-#define HH_IntervalTimer_ 1
+#ifndef HH_SENF_PPI_IntervalTimer_
+#define HH_SENF_PPI_IntervalTimer_ 1
// Custom includes
-#include "Scheduler/ClockService.hh"
+#include "../Scheduler/ClockService.hh"
#include "Events.hh"
//#include "IntervalTimer.mpp"
///\name Structors and default members
///@{
- explicit IntervalTimer(ClockService::clock_type interval,
+ explicit IntervalTimer(ClockService::clock_type interval,
unsigned eventsPerInterval=1);
-
+ IntervalTimer();
+
///@}
///////////////////////////////////////////////////////////////////////////
+ void interval(ClockService::clock_type interval, unsigned eventsPerInterval=1);
+ std::pair<ClockService::clock_type, unsigned> interval() const;
+
protected:
private:
ClockService::clock_type interval_;
unsigned eventsPerInterval_;
IntervalTimerEventInfo info_;
- unsigned id_;
+ scheduler::TimerEvent timer_;
};
}}