PhoenixClockMock
2.1.0
PhoenixClock mock files utilities
Toggle main menu visibility
Loading...
Searching...
No Matches
phoenix_clock_mock.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
#include "
phoenix_clock_mock.h
"
8
10
13
void
concatenateVecTime
(
VecTime
& vecOutput,
const
VecTime
vecInput){
14
for
(VecTime::const_iterator it(vecInput.begin()); it != vecInput.end(); ++it){
15
vecOutput.push_back(*it);
16
}
17
18
}
19
21
26
void
splitVecTime
(
VecTime
& vecOutput,
const
VecTime
vecInput,
27
size_t
offsetPart,
size_t
sizePart)
28
{
29
size_t
maxIndex(std::min(offsetPart + sizePart, vecInput.size()));
30
for
(
size_t
i(offsetPart); i < maxIndex; ++i){
31
vecOutput.push_back(vecInput[i]);
32
}
33
}
34
36
38
void
sleep
(
timeType
ellapsedTime){
39
//Do nothing for mock clock
40
}
41
42
43
44
45
concatenateVecTime
void concatenateVecTime(VecTime &vecOutput, const VecTime vecInput)
Concatenate vector of message into an other one.
Definition
phoenix_clock_mock.cpp:13
splitVecTime
void splitVecTime(VecTime &vecOutput, const VecTime vecInput, size_t offsetPart, size_t sizePart)
Split a vector of messages into an other.
Definition
phoenix_clock_mock.cpp:26
sleep
void sleep(timeType ellapsedTime)
Sleep function for mock clock.
Definition
phoenix_clock_mock.cpp:38
phoenix_clock_mock.h
timeType
unsigned int timeType
Definition
phoenix_clock_mock.h:13
VecTime
std::vector< EllapsedTime > VecTime
Definition
phoenix_clock_mock.h:14
src
phoenix_clock_mock.cpp
Generated by
1.17.0