PhoenixClockMock  2.0.0
Tool to manipulate mock of clock (split, merge and get info)
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. More...
 
bool phoenix_saveClockMock (const VecTime &vecTime)
 Save the Clock Mock. More...
 

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 }
bool data_load(FILE *iter, T &data)
Load data from a message.
Definition: data_file.h:39

References data_load().

Referenced by PClockMock::now().

+ Here is the call graph for this function:
+ 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 }
bool data_save(FILE *iter, const T &data)
Save data in a message.
Definition: data_file.h:18

References data_save().

Referenced by testCreateClockMock(), and PClockMock::~PClockMock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: