PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
data_stream_check_value.h
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 #ifndef __DATA_STREAM_CHECK_VALUE_H__
8 #define __DATA_STREAM_CHECK_VALUE_H__
9 
10 #include <string>
11 #include <vector>
12 #include <list>
13 #include <map>
14 #include <iostream>
15 #include <sstream>
16 
17 template<typename T>
18 bool checkValue(const std::string & testName, const T & givenSize, const T & referenceSize);
19 
20 template<typename T>
21 bool checkValue(const std::string & testName, const T * tabData, const T * tabReferenceData, size_t nbElement);
22 
23 template<typename T>
24 bool checkValue(const std::string & testName, const std::vector<T> & vecData, const std::vector<T> & vecReferenceData);
25 
26 template<typename T>
27 bool checkValue(const std::string & testName, const std::list<T> & vecData, const std::list<T> & vecReferenceData);
28 
29 template<typename T, typename U>
30 bool checkValue(const std::string & testName, const std::map<T, U> & vecData, const std::map<T, U> & vecReferenceData);
31 
32 template<typename T, typename U>
33 bool checkValue(const std::string & testName, const std::vector<std::pair<T, U> > & vecData, const std::vector<std::pair<T, U> > & vecReferenceData);
34 
35 template<typename T, typename U>
36 bool checkValue(const std::string & testName, const std::list<std::pair<T, U> > & vecData, const std::list<std::pair<T, U> > & vecReferenceData);
37 
39 
40 #endif
41 
bool checkValue(const std::string &testName, const T &givenSize, const T &referenceSize)
Check given value compare to the reference value.