Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::SummaryColumn Struct Reference
Collaboration diagram for Catch::SummaryColumn:

Public Member Functions

 SummaryColumn (std::string _label, Colour::Code _colour)
 
SummaryColumn addRow (std::size_t count)
 

Public Attributes

std::string label
 
Colour::Code colour
 
std::vector< std::string > rows
 

Detailed Description

Definition at line 532 of file catch_reporter_console.cpp.

Constructor & Destructor Documentation

◆ SummaryColumn()

Catch::SummaryColumn::SummaryColumn ( std::string _label,
Colour::Code _colour )
inline

Definition at line 534 of file catch_reporter_console.cpp.

535 : label( std::move( _label ) ),
536 colour( _colour ) {}

Member Function Documentation

◆ addRow()

SummaryColumn Catch::SummaryColumn::addRow ( std::size_t count)
inline

Definition at line 537 of file catch_reporter_console.cpp.

537 {
538 ReusableStringStream rss;
539 rss << count;
540 std::string row = rss.str();
541 for (auto& oldRow : rows) {
542 while (oldRow.size() < row.size())
543 oldRow = ' ' + oldRow;
544 while (oldRow.size() > row.size())
545 row = ' ' + row;
546 }
547 rows.push_back(row);
548 return *this;
549 }
int * count
std::vector< std::string > rows
Here is the call graph for this function:

Member Data Documentation

◆ colour

Colour::Code Catch::SummaryColumn::colour

Definition at line 552 of file catch_reporter_console.cpp.

◆ label

std::string Catch::SummaryColumn::label

Definition at line 551 of file catch_reporter_console.cpp.

◆ rows

std::vector<std::string> Catch::SummaryColumn::rows

Definition at line 553 of file catch_reporter_console.cpp.


The documentation for this struct was generated from the following file: