KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COMPATIBILITY_REPORT Class Reference

What an export to a given target will keep, approximate, drop, or block. More...

#include <compatibility_report.h>

Public Member Functions

void Add (DOWNGRADE_BUCKET aBucket, const wxString &aFeature, const wxString &aDetail=wxEmptyString, int aCount=1)
 
void Merge (const COMPATIBILITY_REPORT &aOther)
 
const std::vector< COMPAT_ENTRY > & Entries () const
 
bool IsLossy () const
 True if anything is approximated or dropped. This is what triggers the lossy warning.
 
bool IsBlocked () const
 True if some feature makes the target impossible. The user cannot export anyway.
 
int Count (DOWNGRADE_BUCKET aBucket) const
 
wxString ToText (const wxString &aTargetName) const
 A readable preview of the classified export, including counts and feature details.
 
void Print (REPORTER *aReporter) const
 

Private Member Functions

bool Has (DOWNGRADE_BUCKET aBucket) const
 

Private Attributes

std::vector< COMPAT_ENTRY > m_entries
 

Detailed Description

What an export to a given target will keep, approximate, drop, or block.

The classifier fills this in a dry run before anything is written, so the user sees the cost up front.

Definition at line 52 of file compatibility_report.h.

Member Function Documentation

◆ Add()

◆ Count()

◆ Entries()

◆ Has()

bool COMPATIBILITY_REPORT::Has ( DOWNGRADE_BUCKET aBucket) const
inlineprivate

Definition at line 163 of file compatibility_report.h.

References m_entries.

Referenced by IsBlocked(), and IsLossy().

◆ IsBlocked()

◆ IsLossy()

◆ Merge()

◆ Print()

void COMPATIBILITY_REPORT::Print ( REPORTER * aReporter) const
inline

◆ ToText()

wxString COMPATIBILITY_REPORT::ToText ( const wxString & aTargetName) const
inline

A readable preview of the classified export, including counts and feature details.

Definition at line 103 of file compatibility_report.h.

References _, BLOCK, Count(), DROP, IsBlocked(), IsLossy(), KEEP, LOWER, m_entries, and text.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ m_entries

std::vector<COMPAT_ENTRY> COMPATIBILITY_REPORT::m_entries
private

Definition at line 174 of file compatibility_report.h.

Referenced by Add(), Count(), Entries(), Has(), Merge(), Print(), and ToText().


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