PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
phoenix_isOk.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 <iostream>
8 #include "phoenix_isOk.h"
9 
11 
14 std::string phoenix_isOk(bool b){
15  const char* res[] = {"\033[31mFAIL\033[0m", "\033[32mOK\033[0m"};
16  return std::string(res[b]);
17 }
18 
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.