![]() |
|
PhoenixClock
2.2.0
Library wrapping the usage of system's clock, allowing to use clock mock-ups
|
Include dependency graph for PClockMockFile.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | PClockMockFile |
| Mock of a clock. More... | |
Functions | |
| bool | phoenix_createClockMock (const std::string &prefix, size_t nbTime, time_t firstTime=0l, time_t timeIncrement=1l) |
| Create a clock mock. | |
| bool | phoenix_createMockBackend (PClockMockFile &mock, const std::string &prefix="") |
| Create a mock backend for clock. | |
| template<class _TClockMock> | |
| void | phoenix_fillClockMock (_TClockMock &mock, size_t nbTime, time_t firstTime, time_t timeIncrement) |
| Fill the given clock mock. | |
| bool phoenix_createClockMock | ( | const std::string & | prefix, |
| size_t | nbTime, | ||
| time_t | firstTime, | ||
| time_t | timeIncrement ) |
Create a clock mock.
| prefix | : prefix where to find the mock file |
| nbTime | : number of time values in the mock |
| firstTime | : value of the first time |
| timeIncrement | : increment between two consecutive times |
Definition at line 27 of file PClockMockFile.cpp.
References PClockMock::close(), PClockMockFile::close(), phoenix_createMockBackend(), and phoenix_fillClockMock().
Here is the call graph for this function:| bool phoenix_createMockBackend | ( | PClockMockFile & | mock, |
| const std::string & | prefix ) |
Create a mock backend for clock.
| [out] | mock | : clock mock backend to be used |
| prefix | : prefix of the mock file |
Definition at line 15 of file PClockMockFile.cpp.
References PClockMockFile::setMockPrefix().
Referenced by phoenix_createClockMock().
Here is the call graph for this function:
Here is the caller graph for this function:| void phoenix_fillClockMock | ( | _TClockMock & | mock, |
| size_t | nbTime, | ||
| time_t | firstTime, | ||
| time_t | timeIncrement ) |
Fill the given clock mock.
| [out] | mock | : clock mock to be filled |
| nbTime | : number of time values in the mock | |
| firstTime | : value of the first time | |
| timeIncrement | : increment between two consecutive times |
Definition at line 44 of file PClockMockFile.h.
Referenced by phoenix_createClockMock().
Here is the caller graph for this function: