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

#include <column_formatter.h>

Inheritance diagram for COLUMN_FORMATTER:
PAD_INFO_FORMATTER PIN_INFO_FORMATTER

Public Types

enum class  BOOL_FORMAT { ZERO_ONE , TRUE_FALSE }
 

Public Member Functions

virtual ~COLUMN_FORMATTER ()=default
 
 COLUMN_FORMATTER (UNITS_PROVIDER &aUnitsProvider, bool aIncludeUnits, BOOL_FORMAT aBoolFormat, REPORTER &aReporter)
 

Protected Member Functions

wxString stringFromBool (bool aValue) const
 
bool boolFromString (const wxString &aValue, REPORTER &aReporter) const
 

Protected Attributes

UNITS_PROVIDERm_unitsProvider
 
bool m_includeUnits
 
BOOL_FORMAT m_boolFormat
 
REPORTERm_reporter
 

Detailed Description

Definition at line 28 of file column_formatter.h.

Member Enumeration Documentation

◆ BOOL_FORMAT

enum class COLUMN_FORMATTER::BOOL_FORMAT
strong
Enumerator
ZERO_ONE 
TRUE_FALSE 

Definition at line 31 of file column_formatter.h.

Constructor & Destructor Documentation

◆ ~COLUMN_FORMATTER()

virtual COLUMN_FORMATTER::~COLUMN_FORMATTER ( )
virtualdefault

◆ COLUMN_FORMATTER()

COLUMN_FORMATTER::COLUMN_FORMATTER ( UNITS_PROVIDER & aUnitsProvider,
bool aIncludeUnits,
BOOL_FORMAT aBoolFormat,
REPORTER & aReporter )
inline

Member Function Documentation

◆ boolFromString()

bool COLUMN_FORMATTER::boolFromString ( const wxString & aValue,
REPORTER & aReporter ) const
protected

◆ stringFromBool()

wxString COLUMN_FORMATTER::stringFromBool ( bool aValue) const
protected

Definition at line 38 of file column_formatter.cpp.

References BOOL_FALSE, BOOL_TRUE, m_boolFormat, TRUE_FALSE, and ZERO_ONE.

Referenced by PIN_INFO_FORMATTER::Format().

Member Data Documentation

◆ m_boolFormat

BOOL_FORMAT COLUMN_FORMATTER::m_boolFormat
protected

Definition at line 55 of file column_formatter.h.

Referenced by COLUMN_FORMATTER(), and stringFromBool().

◆ m_includeUnits

bool COLUMN_FORMATTER::m_includeUnits
protected

◆ m_reporter

REPORTER& COLUMN_FORMATTER::m_reporter
protected

Definition at line 56 of file column_formatter.h.

Referenced by COLUMN_FORMATTER(), and PIN_INFO_FORMATTER::UpdatePin().

◆ m_unitsProvider


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