15 return data_save(
"clock.clockmock", vecTime);
23 return data_load(
"clock.clockmock", vecTime);
63 std::cerr <<
"PClockMock::now : cannot load clock mock file 'clock.mock'" << std::endl;
bool phoenix_loadClockMock(VecTime &vecTime)
Load the Clock Mock.
bool phoenix_saveClockMock(const VecTime &vecTime)
Save the Clock Mock.
std::vector< time_t > VecTime
bool p_isRecordMode
True if the clock mock is in record mode.
VecTime p_vecTime
Vector of recorded time.
PClockMock & operator=(const PClockMock &other)
Definition of equal operator of PClockMock.
size_t p_currentTimeIndex
Index of the current time.
PClockMock()
Default constructor of PClockMock.
time_t now()
Get the mocked current time.
virtual ~PClockMock()
Destructor of PClockMock.
void setCurrentTime(time_t currentTime)
Set the current time to be recorded.
void copyPClockMock(const PClockMock &other)
Copy function of PClockMock.
void initialisationPClockMock()
Initialisation function of the class PClockMock.
bool data_load(FILE *iter, T &data)
Load data from a message.
bool data_save(FILE *iter, const T &data)
Save data in a message.