DART  6.10.1
Console.hpp File Reference
#include <ostream>
#include <string>

Go to the source code of this file.

Namespaces

 dart
 
 dart::common
 

Macros

#define dtmsg   (::dart::common::colorMsg("Msg", 32))
 Output a message. More...
 
#define dtdbg   (::dart::common::colorMsg("Dbg", 36))
 Output a debug message. More...
 
#define dtwarn   (::dart::common::colorErr("Warning", __FILE__, __LINE__, 33))
 Output a warning message. More...
 
#define dterr   (::dart::common::colorErr("Error", __FILE__, __LINE__, 31))
 Output an error message. More...
 

Functions

std::ostream & dart::common::colorMsg (const std::string &_msg, int _color)
 
std::ostream & dart::common::colorErr (const std::string &_msg, const std::string &_file, unsigned int _line, int _color)
 
template<class T >
auto dart::operator<< (std::ostream &os, const T &t) -> decltype(t.print(os), os)
 

Macro Definition Documentation

◆ dtdbg

#define dtdbg   (::dart::common::colorMsg("Dbg", 36))

Output a debug message.

◆ dterr

#define dterr   (::dart::common::colorErr("Error", __FILE__, __LINE__, 31))

Output an error message.

◆ dtmsg

#define dtmsg   (::dart::common::colorMsg("Msg", 32))

Output a message.

◆ dtwarn

#define dtwarn   (::dart::common::colorErr("Warning", __FILE__, __LINE__, 33))

Output a warning message.