PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_check_impl.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 __PHOENIX_CHECK_IMPL_H__
8 #define __PHOENIX_CHECK_IMPL_H__
9 
10 #include <iostream>
11 #include "phoenix_check.h"
12 
14 
19 template<typename T>
20 bool phoenix_check(const std::string & testName, const T & val, const T & reference){
21  bool b(val == reference);
22  if(!b){
23  std::cout << "phoenix_check : " << testName << " => " << phoenix_isOk(b) << std::endl;
24  std::cout << "\tval = '"<<val<<"'" << std::endl;
25  std::cout << "\treference = '"<<reference<<"'" << std::endl;
26  }
27  return b;
28 }
29 
30 
31 #endif
bool phoenix_check(const std::string &testName, const T &val, const T &reference)
Check two value.
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.