PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_isOk.h File Reference
#include <string>
+ Include dependency graph for phoenix_isOk.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string phoenix_isOk (bool b)
 Print OK or FAIL depending on the given boolean. More...
 
std::string phoenix_isYes (bool b)
 Print Yes or No depending on the given boolean. More...
 

Function Documentation

◆ phoenix_isOk()

std::string phoenix_isOk ( bool  b)

Print OK or FAIL depending on the given boolean.

Parameters
b: boolean to be checked
Returns
OK on true, FAIL on false

Definition at line 14 of file phoenix_isOk.cpp.

14  {
15  const char* res[] = {"\033[31mFAIL\033[0m", "\033[32mOK\033[0m"};
16  return std::string(res[b]);
17 }

Referenced by phoenix_check(), and testIsOk().

+ Here is the caller graph for this function:

◆ phoenix_isYes()

std::string phoenix_isYes ( bool  b)

Print Yes or No depending on the given boolean.

Parameters
b: boolean to be checked
Returns
Yes on true, No on false

Definition at line 23 of file phoenix_isOk.cpp.

23  {
24  const char* res[] = {"\033[31mNo\033[0m", "\033[32mYes\033[0m"};
25  return std::string(res[b]);
26 }

Referenced by testIsOk().

+ Here is the caller graph for this function: