some code cleanup

This commit is contained in:
maroy 2004-11-08 13:18:45 +00:00
parent e9431a2495
commit 654ec9651a
3 changed files with 15 additions and 12 deletions

View File

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.1 $
Version : $Revision: 1.2 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/include/LiveSupport/EventScheduler/ScheduledEventInterface.h,v $
------------------------------------------------------------------------------*/
@ -76,7 +76,7 @@ using namespace LiveSupport::Core;
* </ul>
*
* @author $Author: maroy $
* @version $Revision: 1.1 $
* @version $Revision: 1.2 $
*/
class ScheduledEventInterface
{
@ -94,7 +94,7 @@ class ScheduledEventInterface
*
* @return the time this event is scheduled for.
*/
virtual Ptr<ptime>::Ref
virtual Ptr<const ptime>::Ref
getScheduledTime(void) throw () = 0;
/**
@ -119,7 +119,7 @@ class ScheduledEventInterface
* @return the maximum time for the initialize() function to complete.
* @see #initialize
*/
virtual Ptr<time_duration>::Ref
virtual Ptr<const time_duration>::Ref
maxTimeToInitialize(void) throw () = 0;
/**
@ -143,7 +143,7 @@ class ScheduledEventInterface
*
* @return the length of the event, in time.
*/
virtual Ptr<time_duration>::Ref
virtual Ptr<const time_duration>::Ref
eventLength(void) throw () = 0;
/**

View File

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.2 $
Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/src/SchedulerThread.h,v $
------------------------------------------------------------------------------*/
@ -67,7 +67,7 @@ using namespace LiveSupport::Core;
* The main, executing thread of the scheduler.
*
* @author $Author: maroy $
* @version $Revision: 1.2 $
* @version $Revision: 1.3 $
*/
class SchedulerThread : public virtual RunnableInterface
{
@ -85,7 +85,7 @@ class SchedulerThread : public virtual RunnableInterface
/**
* The execution time of the next event.
*/
Ptr<ptime>::Ref nextEventTime;
Ptr<const ptime>::Ref nextEventTime;
/**
* The time to start the initialization of the next event.
@ -135,8 +135,8 @@ class SchedulerThread : public virtual RunnableInterface
* now + granularity, false otherwise.
*/
bool
imminent(Ptr<ptime>::Ref now,
Ptr<ptime>::Ref when) const throw ()
imminent(Ptr<const ptime>::Ref now,
Ptr<const ptime>::Ref when) const throw ()
{
return *when >= *now && (*now + *granularity) > *when;
}

View File

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.2 $
Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/include/LiveSupport/PlaylistExecutor/AudioPlayerInterface.h,v $
------------------------------------------------------------------------------*/
@ -40,6 +40,9 @@
#include "configure.h"
#endif
#include <exception>
#include <stdexcept>
namespace LiveSupport {
namespace PlaylistExecutor {
@ -58,7 +61,7 @@ using namespace LiveSupport;
* A generic interface for playing audio files.
*
* @author $Author: maroy $
* @version $Revision: 1.2 $
* @version $Revision: 1.3 $
*/
class AudioPlayerInterface
{