Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
Print.h File Reference
#include <hydra/detail/utility/StreamSTL.h>
#include <hydra/detail/Config.h>
#include <hydra/Types.h>
#include <iostream>
Include dependency graph for Print.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  hydra::Print
 

Namespaces

 hydra
 Generic policies definition.
 

Macros

#define HYDRA_CALLER
 
#define HYDRA_ENDL   "\033[0m"<< std::endl
 
#define HYDRA_LOG(level, str)
 
#define HYDRA_MSG   std::cout << "\033[1;33m"<< "|--- Hydra --->: " <<"\033[0;36m"
 
#define HYDRA_SPACED_MSG   std::cout << "\033[1;33m"<< "|--- Hydra ------>: " <<"\033[0;36m"
 

Enumerations

enum  { hydra::INFO =0, hydra::WARNING =1, hydra::ERROR =2 }
 

Variables

int hydra::PrintLevel = WARNING
 

Macro Definition Documentation

◆ HYDRA_CALLER

#define HYDRA_CALLER
Value:
std::cout << "\033[1;32m"<< "|--- Hydra ---> "\
<< __PRETTY_FUNCTION__<<"\033[0m"<< std::endl

◆ HYDRA_ENDL

#define HYDRA_ENDL   "\033[0m"<< std::endl

◆ HYDRA_LOG

#define HYDRA_LOG (   level,
  str 
)
Value:
if ( level >= Print::Level()) HYDRA_OS << "\033[1;34m" << "\nHydra["<< Print::Label(level) << "] from: \n"\
<< "\033[1;32m" << __PRETTY_FUNCTION__ << '\n' << "\033[1;34m" << "FILE: "<< "\033[1;32m" << __FILE__ << "\n"\
<< "\033[1;34m" << "LINE :"<< "\033[1;32m"<<__LINE__ << "\033[1;32m"<< "\n" << "\033[1;34m" \
<< "MESSAGE: " << "\033[1;31m" << str <<"\033[0m"<< std::endl << std::endl;
#define HYDRA_OS
Definition: Config.h:124

◆ HYDRA_MSG

#define HYDRA_MSG   std::cout << "\033[1;33m"<< "|--- Hydra --->: " <<"\033[0;36m"

◆ HYDRA_SPACED_MSG

#define HYDRA_SPACED_MSG   std::cout << "\033[1;33m"<< "|--- Hydra ------>: " <<"\033[0;36m"