PhoenixClock  0.4.0
Library wrapping the usage of system's clock, allowing to use clock mock-ups
Loading...
Searching...
No Matches
PClockMock.h File Reference
#include "data_all.h"
+ Include dependency graph for PClockMock.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PClockMock
 Mock of a clock. More...
 

Typedefs

typedef std::vector< time_t > VecTime
 

Functions

bool phoenix_loadClockMock (VecTime &vecTime)
 Load the Clock Mock.
 
bool phoenix_saveClockMock (const VecTime &vecTime)
 Save the Clock Mock.
 

Typedef Documentation

◆ VecTime

typedef std::vector<time_t> VecTime

Definition at line 12 of file PClockMock.h.

Function Documentation

◆ phoenix_loadClockMock()

bool phoenix_loadClockMock ( VecTime & vecTime)

Load the Clock Mock.

Parameters
[out]vecTime: vector of time to be loaded from Mock
Returns
true on success, false otherwise

Definition at line 22 of file PClockMock.cpp.

22 {
23 return data_load("clock.clockmock", vecTime);
24}

Referenced by PClockMock::now().

+ Here is the caller graph for this function:

◆ phoenix_saveClockMock()

bool phoenix_saveClockMock ( const VecTime & vecTime)

Save the Clock Mock.

Parameters
vecTime: vector of time to be saved as Mock
Returns
true on success, false otherwise

Definition at line 14 of file PClockMock.cpp.

14 {
15 return data_save("clock.clockmock", vecTime);
16}

Referenced by PClockMock::~PClockMock().

+ Here is the caller graph for this function: