PhoenixClockMock  2.0.0
Tool to manipulate mock of clock (split, merge and get info)
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 
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 
35 
36 
37 
38 
std::vector< time_t > VecTime
Definition: PClockMock.h:12
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.