7#ifndef __PGENERICCLOCK_H__
8#define __PGENERICCLOCK_H__
15template<
typename _TBackend,
typename _TMockBackend>
void copyPGenericClock(const PGenericClock< _TBackend, _TMockBackend > &other)
Copy function of PGenericClock.
PGenericClock()
Default constructor of PGenericClock.
PClockMode::PClockMode getMode() const
Get the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD)
void resetMockIndex()
Reset the mock clock to initial state.
void setMode(PClockMode::PClockMode mode)
Set the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD)
virtual ~PGenericClock()
Destructor of PGenericClock.
PGenericClock & operator=(const PGenericClock< _TBackend, _TMockBackend > &other)
Definition of equal operator of PGenericClock.
void setMockPrefix(const std::string &mockPrefix)
Set the mock prefix to load and save the mock with a custom file.
time_t now()
Get the current time of the clock.
void initialisationPGenericClock()
Initialisation function of the class PGenericClock.
_TBackend p_clockBackend
Instance of the clock backend (necessary for some clock backends)
_TMockBackend p_mockBackend
Instance of the clock backend (necessary for some clock backends)
PClockMode::PClockMode p_mode
Mode of the Clock (no mock, mock, mock_record)
void sleep(EllapsedTime ellapsedTime) const
Sleep for a given ellapsed time.
PClockMode
describe the mode of the Socket