MGIS 3.1.0
Loading...
Searching...
No Matches
LogStream.hxx File Reference
#include <iosfwd>
#include <string>
#include <memory>
#include <utility>
#include <string_view>
#include "MGIS/Config.hxx"
#include "MGIS/LogStream.ixx"

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Enumerations

enum struct  mgis::OutputStreamColors {
  BLACK , RED , GREEN , YELLOW ,
  BLUE , PURPLE , LIGHTBLUE , WHITE ,
  RESET
}
 list of available colors for output stream More...

Functions

MGIS_EXPORT MGIS_NODISCARD std::ostream & mgis::getDefaultLogStream () MGIS_NOEXCEPT
MGIS_EXPORT MGIS_NODISCARD std::pair< bool, std::string > mgis::setDefaultLogStream (std::string_view) MGIS_NOEXCEPT
 set the default log stream as a file.
MGIS_EXPORT void mgis::setDefaultLogStream (std::ostream &) MGIS_NOEXCEPT
 set the default log stream from an exisiting output stream
MGIS_EXPORT void mgis::setDefaultLogStream (std::shared_ptr< std::ostream >) MGIS_NOEXCEPT
 set the default log stream from an exisiting output stream
MGIS_EXPORT void mgis::resetDefaultLogStream () MGIS_NOEXCEPT
 reset the default log stream
MGIS_EXPORT void mgis::disableDefaultLogStream () MGIS_NOEXCEPT
 disable the default log stream
MGIS_EXPORT void mgis::setStreamColor (std::ostream &, const OutputStreamColors) MGIS_NOEXCEPT
 change the color of the output for warnings for red
MGIS_EXPORT void mgis::resetStreamColor (std::ostream &) MGIS_NOEXCEPT
 reset the color of the output
template<typename... Args>
void mgis::warning (std::ostream &, Args &&...) MGIS_NOEXCEPT
 print a warning message
template<typename... Args>
void mgis::debug (std::ostream &, Args &&...) MGIS_NOEXCEPT
 print message for debugging
MGIS_EXPORT void mgis::setErrorColor (std::ostream &) MGIS_NOEXCEPT
MGIS_EXPORT void mgis::setWarningColor (std::ostream &) MGIS_NOEXCEPT

Detailed Description

Author
Thomas Helfer
Date
24/02/2026