Rodin::Alert::Warning class

Warning message class with formatted output.

A specialized message class for displaying warnings with yellow-colored formatting. Unlike exceptions, warning messages do not terminate the program and are used to notify users of potential issues or unusual conditions that don't prevent execution.

The Warning class provides stream-like insertion operators for building detailed warning messages with formatting capabilities.

Example usage: Warning() << "This operation is deprecated" << Raise;

Base classes

template<class Prefix>
class Message<WarningPrefix>
Forward declaration of the Message template class.

Derived classes

template<class T, class FuncName>
class MemberFunctionWarning
Warning type for issues occurring in member functions.

Public types

using Parent = Message<WarningPrefix>
Parent class type alias.

Constructors, destructors, conversion operators

Warning()
Constructs a Warning alert with an empty message.
Warning(std::ostream& os)
Constructs a Warning alert with a specific output stream.
Warning(const Warning& other)
Copy constructor.
Warning(Warning&& other)
Move constructor.

Function documentation

Rodin::Alert::Warning::Warning()

Constructs a Warning alert with an empty message.

Creates a warning message that outputs to std::cout by default.

Rodin::Alert::Warning::Warning(std::ostream& os)

Constructs a Warning alert with a specific output stream.

Parameters
os The output stream to write the warning message to.

Rodin::Alert::Warning::Warning(const Warning& other)

Copy constructor.

Parameters
other The Warning object to copy from.

Rodin::Alert::Warning::Warning(Warning&& other)

Move constructor.

Parameters
other The Warning object to move from.