MCPcopy Create free account
hub / github.com/Profactor/cv-plot / Capturer

Class Capturer

CvPlot/ext/catch2/inc/catch.hpp:2610–2630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608 };
2609
2610 class Capturer {
2611 std::vector<MessageInfo> m_messages;
2612 IResultCapture& m_resultCapture = getResultCapture();
2613 size_t m_captured = 0;
2614 public:
2615 Capturer( StringRef macroName, SourceLineInfo const& lineInfo, ResultWas::OfType resultType, StringRef names );
2616 ~Capturer();
2617
2618 void captureValue( size_t index, std::string const& value );
2619
2620 template<typename T>
2621 void captureValues( size_t index, T const& value ) {
2622 captureValue( index, Catch::Detail::stringify( value ) );
2623 }
2624
2625 template<typename T, typename... Ts>
2626 void captureValues( size_t index, T const& value, Ts const&... values ) {
2627 captureValue( index, Catch::Detail::stringify(value) );
2628 captureValues( index+1, values... );
2629 }
2630 };
2631
2632} // end namespace Catch
2633

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected