Class Capturer

Synopsis

#include <include/internal/catch_message.h>

class Capturer

Description

No description yet.

Methods

Capturer
~Capturer
captureValue
captureValues overload

Source

Lines 75-95 in include/internal/catch_message.h.

class Capturer {
    std::vector<MessageInfo> m_messages;
    IResultCapture& m_resultCapture = getResultCapture();
    size_t m_captured = 0;
public:
    Capturer( StringRef macroName, SourceLineInfo const& lineInfo, ResultWas::OfType resultType, StringRef names );
    ~Capturer();
    void captureValue( size_t index, std::string const& value );
    template<typename T>
    void captureValues( size_t index, T const& value ) {
        captureValue( index, Catch::Detail::stringify( value ) );
    }
    template<typename T, typename... Ts>
    void captureValues( size_t index, T const& value, Ts const&... values ) {
        captureValue( index, Catch::Detail::stringify(value) );
        captureValues( index+1, values... );
    }
};





Add Discussion as Guest

Log in