1 #ifndef GUARD_GGEMS_TOOLS_GGEMSPRINT_HH
2 #define GUARD_GGEMS_TOOLS_GGEMSPRINT_HH
46 #include "GGEMS/global/GGEMSExport.hh"
60 #define GGendl (static_cast<std::ostream& (*)(std::ostream&)>(std::endl))
66 #define GGcin (std::cin)
69 #pragma warning(disable: 4251) // Deleting warning exporting STL members!!!
107 std::string
const kColor[] = {
118 std::string
const kDefaultColor(
"\033[0m");
150 GGEMSStream& operator()(std::string
const& class_name, std::string
const& method_name,
GGint const& verbosity_level);
167 void SetVerbosity(
GGint const& verbosity_limit);
185 template <
typename T>
190 CONSOLE_SCREEN_BUFFER_INFO info;
191 GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
192 HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
193 FlushConsoleInputBuffer(hConsole);
198 stream_ << std::scientific <<
"[";
203 SetConsoleTextAttribute(hConsole, info.wAttributes);
212 SetConsoleTextAttribute(hConsole, info.wAttributes);
242 #endif // GUARD_GGEMS_TOOLS_GGPRINT_HH