![]() |
PhoenixClockMock
2.0.0
Tool to manipulate mock of clock (split, merge and get info)
|
Generic clock which can use several backends (real clock backend and a mock of clock) More...
#include <PGenericClock.h>
Public Member Functions | |
PClockMode::PClockMode | getMode () const |
Get the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD) More... | |
time_t | now () |
Get the current time of the clock. More... | |
PGenericClock & | operator= (const PGenericClock< _TBackend, _TMockBackend > &other) |
Definition of equal operator of PGenericClock. More... | |
PGenericClock () | |
Default constructor of PGenericClock. More... | |
PGenericClock (const PGenericClock< _TBackend, _TMockBackend > &other) | |
Copy constructor of PGenericClock. More... | |
void | setMode (PClockMode::PClockMode mode) |
Set the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD) More... | |
virtual | ~PGenericClock () |
Destructor of PGenericClock. More... | |
Protected Member Functions | |
void | copyPGenericClock (const PGenericClock< _TBackend, _TMockBackend > &other) |
Copy function of PGenericClock. More... | |
Private Member Functions | |
void | initialisationPGenericClock () |
Initialisation function of the class PGenericClock. More... | |
Private Attributes | |
_TBackend | p_clockBackend |
Instance of the clock backend (necessary for some clock backends) More... | |
_TMockBackend | p_mockBackend |
Instance of the clock backend (necessary for some clock backends) More... | |
PClockMode::PClockMode | p_mode |
Mode of the Clock (no mock, mock, mock_record) More... | |
Generic clock which can use several backends (real clock backend and a mock of clock)
Definition at line 17 of file PGenericClock.h.
PGenericClock< _TBackend, _TMockBackend >::PGenericClock |
Default constructor of PGenericClock.
Definition at line 16 of file PGenericClock_impl.h.
PGenericClock< _TBackend, _TMockBackend >::PGenericClock | ( | const PGenericClock< _TBackend, _TMockBackend > & | other | ) |
Copy constructor of PGenericClock.
other | : class to copy |
Definition at line 24 of file PGenericClock_impl.h.
|
virtual |
|
protected |
Copy function of PGenericClock.
other | : class to copy |
Definition at line 80 of file PGenericClock_impl.h.
References PGenericClock< _TBackend, _TMockBackend >::p_mode.
PClockMode::PClockMode PGenericClock< _TBackend, _TMockBackend >::getMode |
Get the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD)
Definition at line 56 of file PGenericClock_impl.h.
|
private |
Initialisation function of the class PGenericClock.
Definition at line 86 of file PGenericClock_impl.h.
References PClockMode::NO_MOCK.
time_t PGenericClock< _TBackend, _TMockBackend >::now |
Get the current time of the clock.
Definition at line 64 of file PGenericClock_impl.h.
References PClockMode::MOCK, and PClockMode::NO_MOCK.
PGenericClock< _TBackend, _TMockBackend > & PGenericClock< _TBackend, _TMockBackend >::operator= | ( | const PGenericClock< _TBackend, _TMockBackend > & | other | ) |
Definition of equal operator of PGenericClock.
other | : class to copy |
Definition at line 39 of file PGenericClock_impl.h.
void PGenericClock< _TBackend, _TMockBackend >::setMode | ( | PClockMode::PClockMode | mode | ) |
Set the mode of the PGenericClock (NO_MOCK, MOCK or MOCK_RECORD)
mode | : mode of the PGenericClock |
Definition at line 48 of file PGenericClock_impl.h.
|
private |
Instance of the clock backend (necessary for some clock backends)
Definition at line 37 of file PGenericClock.h.
|
private |
Instance of the clock backend (necessary for some clock backends)
Definition at line 39 of file PGenericClock.h.
|
private |
Mode of the Clock (no mock, mock, mock_record)
Definition at line 35 of file PGenericClock.h.
Referenced by PGenericClock< _TBackend, _TMockBackend >::copyPGenericClock().