PhoenixClockMock  1.0.0
Tool to manipulate mock of clock
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 : CeCILL-C
5****************************************/
6
8
10
13void 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
26void 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
35
36
37
38
void concatenateVecTime(VecTime &vecOutput, const VecTime vecInput)
Concatenate vector of message into an other one.
void splitVecTime(VecTime &vecOutput, const VecTime vecInput, size_t offsetPart, size_t sizePart)
Split a vector of messages into an other.