PhoenixDataStream  1.0.0
Framework to save/load/serialize/deserialize data
Loading...
Searching...
No Matches
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
17template<typename T>
18bool checkValue(const std::string & testName, const T & givenSize, const T & referenceSize);
19
20template<typename T>
21bool checkValue(const std::string & testName, const T * tabData, const T * tabReferenceData, size_t nbElement);
22
23template<typename T>
24bool checkValue(const std::string & testName, const std::vector<T> & vecData, const std::vector<T> & vecReferenceData);
25
26template<typename T>
27bool checkValue(const std::string & testName, const std::list<T> & vecData, const std::list<T> & vecReferenceData);
28
29template<typename T, typename U>
30bool checkValue(const std::string & testName, const std::map<T, U> & vecData, const std::map<T, U> & vecReferenceData);
31
32template<typename T, typename U>
33bool checkValue(const std::string & testName, const std::vector<std::pair<T, U> > & vecData, const std::vector<std::pair<T, U> > & vecReferenceData);
34
35template<typename T, typename U>
36bool 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.