7 #ifndef __FWCORE_TIMESTAMP_HPP__ 8 #define __FWCORE_TIMESTAMP_HPP__ 10 #include "fwCore/base.hpp" 11 #include "fwCore/HiResClock.hpp" 39 this->m_modifiedTime = 0;
40 this->m_lifePeriod = 0;
49 FWCORE_API
void modified();
57 return this->m_modifiedTime;
69 return ( this->m_modifiedTime > ts.m_modifiedTime );
79 return ( this->m_modifiedTime < ts.m_modifiedTime );
85 FWCORE_API
operator TimeStampType()
const 87 return this->m_modifiedTime;
98 m_lifePeriod = period;
128 TimeStampType m_modifiedTime;
133 TimeStampType m_lifePeriod;
140 #endif // __FWCORE_TIMESTAMP_HPP__ Base class for all FW4SPL's classes.
This namespace fwCore provides common foundations for FW4SPL.
FWCORE_API HiResClockType getTimeInMilliSec()
FWCORE_API bool operator>(const TimeStamp &ts) const
Greater than operator for TimeStamp.
FWCORE_API void setLifePeriod(TimeStampType period)
Setter for the life period.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Provides a timestamp and a expiracy system.
FWCORE_API TimeStampType getTimeStamp() const
FWCORE_API bool periodExpired() const
Check TimeStamp expiracy status.
FWCORE_API TimeStampType getLifePeriod() const
Getter for the life period.
FWCORE_API bool operator<(const TimeStamp &ts) const
Lesser than operator for TimeStamp.
::fwCore::HiResClock::HiResClockType TimeStampType
Type used in logical typestamp.