BaseListener: remove pointless creation timestamps

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1637 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-09-13 20:07:00 +00:00
parent 8ef01b7dfa
commit 15e965febf

View File

@ -1,7 +1,6 @@
#ifndef __LISTENER_HPP__ #ifndef __LISTENER_HPP__
#define __LISTENER_HPP__ #define __LISTENER_HPP__
#include <ctime>
#include <string> #include <string>
#include <cassert> #include <cassert>
#include <vector> #include <vector>
@ -31,7 +30,7 @@ protected:
ExperimentFlow* m_Parent; //!< this listener belongs to experiment m_Parent ExperimentFlow* m_Parent; //!< this listener belongs to experiment m_Parent
public: public:
BaseListener() : m_OccCounter(1), m_OccCounterInit(1), m_Parent(NULL) BaseListener() : m_OccCounter(1), m_OccCounterInit(1), m_Parent(NULL)
{ updateTime(); } { }
virtual ~BaseListener() { } virtual ~BaseListener() { }
/** /**
* This method is called when an experiment flow adds a new listener by * This method is called when an experiment flow adds a new listener by
@ -58,13 +57,6 @@ public:
*/ */
virtual void onTrigger() { } virtual void onTrigger() { }
// TODO: Hier noch ne neue Methode oder reicht es, die Semantik von onTrigger umzudef.? // TODO: Hier noch ne neue Methode oder reicht es, die Semantik von onTrigger umzudef.?
/**
* Retrieves the time stamp of this listener. The time stamp is set when
* the listener gets created, i.e. the constructor is called. The meaning
* of this value depends on the actual listener type.
* @return the time stamp
*/
std::time_t getTime() const { return (m_tStamp); }
/** /**
* Decreases the listener counter by one. When this counter reaches zero, the * Decreases the listener counter by one. When this counter reaches zero, the
* listener will be triggered. * listener will be triggered.
@ -85,10 +77,6 @@ public:
* value that was set through \c setCounter(). * value that was set through \c setCounter().
*/ */
void resetCounter() { m_OccCounter = m_OccCounterInit; } void resetCounter() { m_OccCounter = m_OccCounterInit; }
/**
* Sets the time stamp for this listener to the current system time.
*/
void updateTime() { time(&m_tStamp); }
/** /**
* Returns the parent experiment of this listener (context). * Returns the parent experiment of this listener (context).
* If the listener was created temporarily or wasn't linked to a context, * If the listener was created temporarily or wasn't linked to a context,