PhoenixClock  2.2.0
Library wrapping the usage of system's clock, allowing to use clock mock-ups
Loading...
Searching...
No Matches
PClockMock.h File Reference
#include "ellapsedTime.h"
#include "phoenix_generic_mock.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...
 

Functions

bool phoenix_createMockBackend (PClockMock &mock, const std::string &prefix="")
 Create a mock backend for clock.
 

Function Documentation

◆ phoenix_createMockBackend()

bool phoenix_createMockBackend ( PClockMock & mock,
const std::string & prefix )

Create a mock backend for clock.

Parameters
[out]mock: clock mock backend to be used
prefix: prefix of the mock file
Returns
true on success, false otherwise

Definition at line 15 of file PClockMock.cpp.

15 {
16 mock.setMockPrefix(prefix);
17 return true;
18}
void setMockPrefix(const std::string &mockPrefix)
Set the mock directory.

References PClockMock::setMockPrefix().

+ Here is the call graph for this function: