29#ifndef NOMLIB_CORE_CONSOLE_OUTPUT_HPP
30#define NOMLIB_CORE_CONSOLE_OUTPUT_HPP
34#include "nomlib/config.hpp"
63 STYLE_UNDERLINED = 0x2
98 virtual void set_style( uint32 style );
121 std::string
env(
const std::string& path)
const;
126 std::unique_ptr<ConsoleOutput>
impl_;
std::ostream & out_
The output stream to use; i.e.: std::cout or std::cerr.
std::string env(const std::string &path) const
Get the value of an environment variable.
@ STYLE_NONE
Resets the text colors.
ConsoleOutput(std::ostream &os)
Construct a console output object with a custom output stream.
std::unique_ptr< ConsoleOutput > impl_
The platform-dependent implementation to use.
virtual void endl()
Reset the colors that have been set.
ConsoleOutput()
Default constructor; initializes the output stream to use std::cerr (the standard error stream).
ConsoleOutput::Color lcolor_
The last color used.
ConsoleOutput::Color color() const
Get the last color that was set.
bool use_color() const
Get the current use state of colored output logging.