ocra-recipes
Doxygen documentation for the ocra-recipes repository
Macros | Functions
ErrorsHelper.h File Reference
#include <iostream>
Include dependency graph for ErrorsHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __FULL_METHOD_NAME__   fullMethodName(__PRETTY_FUNCTION__)
 
#define OCRA_ERROR(msg)   std::cout << "\033[1;93;41m[ERROR]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;
 
#define OCRA_WARNING(msg)   std::cout << "\033[1;97;42m[WARNING]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;
 
#define OCRA_INFO(msg)   std::cout << "\033[1;97;40m[INFO]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;
 

Functions

std::string fullMethodName (const std::string &prettyFunction)
 

Macro Definition Documentation

#define __FULL_METHOD_NAME__   fullMethodName(__PRETTY_FUNCTION__)

Definition at line 15 of file ErrorsHelper.h.

#define OCRA_ERROR (   msg)    std::cout << "\033[1;93;41m[ERROR]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;

Definition at line 32 of file ErrorsHelper.h.

#define OCRA_INFO (   msg)    std::cout << "\033[1;97;40m[INFO]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;

Definition at line 38 of file ErrorsHelper.h.

#define OCRA_WARNING (   msg)    std::cout << "\033[1;97;42m[WARNING]" << __FULL_METHOD_NAME__ << "\033[0m" << std::endl << msg << std::endl;

Definition at line 35 of file ErrorsHelper.h.

Function Documentation

std::string fullMethodName ( const std::string &  prettyFunction)
inline

Definition at line 6 of file ErrorsHelper.h.