Sierra Toolkit  Version of the Day
stk_classic::RuntimeWarningDeferred Class Reference

Class RuntimeWarningDeferred reports a deferred warning message to the report system. More...

#include <RuntimeWarning.hpp>

Public Member Functions

 RuntimeWarningDeferred (const MessageCode &message_code)
 Creates a new RuntimeWarningDeferred instance, setting the message code. More...
 
 ~RuntimeWarningDeferred ()
 Destroys a RuntimeWarning instance. More...
 
RuntimeWarningDeferredoperator<< (OStreamFunctionPtr f)
 Member function operator<< passes the ios_base manipulator to the output stream. More...
 
RuntimeWarningDeferredoperator<< (IOSBaseFunctionPtr f)
 Member function operator<< passes the ios_base manipulator to the output stream. More...
 
template<class T >
RuntimeWarningDeferredoperator<< (const T &t)
 Member function operator<< passes any data type to the exception string class for conversion to a string. More...
 

Public Attributes

std::ostringstream message
 Stream to receive message header content.
 
std::ostringstream aggregate
 Stream to receive message aggregate content.
 

Detailed Description

Class RuntimeWarningDeferred reports a deferred warning message to the report system.

For example:

    if (deferred_runtime_warning_condition) {
      static MessageCode mc;
      RuntimeWarningDeferred(mc) << "My useful message about " << some_data;
    }
    if (deferred_runtime_warning_condition) {
      static MessageCode mc;
      RuntimeWarningDeferred x;
      x << "My useful message about " << some_data;
      x.aggregate << proc_specific_data;
    }

Definition at line 305 of file RuntimeWarning.hpp.

Constructor & Destructor Documentation

◆ RuntimeWarningDeferred()

stk_classic::RuntimeWarningDeferred::RuntimeWarningDeferred ( const MessageCode message_code)
explicit

Creates a new RuntimeWarningDeferred instance, setting the message code.

Parameters
message_codean MessageCode const reference to the message code associated with this message.

Definition at line 103 of file RuntimeWarning.cpp.

◆ ~RuntimeWarningDeferred()

stk_classic::RuntimeWarningDeferred::~RuntimeWarningDeferred ( )

Destroys a RuntimeWarning instance.

The message is displayed by calling the add_deferred_message() function.

Definition at line 109 of file RuntimeWarning.cpp.

Member Function Documentation

◆ operator<<() [1/3]

RuntimeWarningDeferred& stk_classic::RuntimeWarningDeferred::operator<< ( OStreamFunctionPtr  f)
inline

Member function operator<< passes the ios_base manipulator to the output stream.

Returns
a RuntimeWarningDeferred reference to this object

Definition at line 345 of file RuntimeWarning.hpp.

◆ operator<<() [2/3]

RuntimeWarningDeferred& stk_classic::RuntimeWarningDeferred::operator<< ( IOSBaseFunctionPtr  f)
inline

Member function operator<< passes the ios_base manipulator to the output stream.

Returns
a RuntimeWarningDeferred reference to this object

Definition at line 356 of file RuntimeWarning.hpp.

◆ operator<<() [3/3]

template<class T >
RuntimeWarningDeferred& stk_classic::RuntimeWarningDeferred::operator<< ( const T &  t)
inline

Member function operator<< passes any data type to the exception string class for conversion to a string.

Parameters
ta T const reference that is to be converted to a string.
Returns
a RuntimeWarningDeferred reference to this object;

Definition at line 371 of file RuntimeWarning.hpp.


The documentation for this class was generated from the following files: