Classes | Namespaces | Defines
hayai_console_outputter.hpp File Reference
#include "hayai/hayai_outputter.hpp"
#include "hayai/hayai_console.hpp"
Include dependency graph for hayai_console_outputter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hayai::ConsoleOutputter
 Console outputter. More...

Namespaces

namespace  hayai

Defines

#define PAD(x)   _stream << std::setw(34) << x << std::endl;
#define PAD_DEVIATION(description,deviated,average,unit)
#define PAD_DEVIATION_INVERSE(description,deviated,average,unit)

Define Documentation

#define PAD (   x)    _stream << std::setw(34) << x << std::endl;
#define PAD_DEVIATION (   description,
  deviated,
  average,
  unit 
)
Value:
{                                                           \
                double _d_ =                                            \
                    double(deviated) - double(average);                 \
                                                                        \
                PAD(description <<                                      \
                    deviated << " " << unit << " (" <<                  \
                    (deviated < average ?                               \
                     Console::TextRed :                                 \
                     Console::TextGreen) <<                             \
                    (deviated > average ? "+" : "") <<                  \
                    _d_ << " " << unit << " / " <<                      \
                    (deviated > average ? "+" : "") <<                  \
                    (_d_ * 100.0 / average) << " %" <<                  \
                    Console::TextDefault << ")");                       \
            }
#define PAD_DEVIATION_INVERSE (   description,
  deviated,
  average,
  unit 
)
Value:
{                                                           \
                double _d_ =                                            \
                    double(deviated) - double(average);                 \
                                                                        \
                PAD(description <<                                      \
                    deviated << " " << unit << " (" <<                  \
                    (deviated > average ?                               \
                     Console::TextRed :                                 \
                     Console::TextGreen) <<                             \
                    (deviated > average ? "+" : "") <<                  \
                    _d_ << " " << unit << " / " <<                      \
                    (deviated > average ? "+" : "") <<                  \
                    (_d_ * 100.0 / average) << " %" <<                  \
                    Console::TextDefault << ")");                       \
            }


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:43