KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_sections.cpp File Reference
#include "fab_sections.h"
#include <array>
#include <magic_enum.hpp>

Go to the source code of this file.

Namespaces

namespace  FAB
 

Functions

char FAB::SectionKeyChar (SECTION aSection)
 Return the Table 4 key character for aSection.
 
std::optional< SECTION > FAB::SectionFromKeyChar (char aKey)
 Return the schema section for a Table 4 key character.
 
SECTION_RULE FAB::SectionRule (MODE aMode, SECTION aSection)
 Return the Table 4 cell for aMode and aSection.
 
SECTION_SET FAB::RequiredSections (MODE aMode)
 Schema sections that Table 4 marks Y for aMode.
 
SECTION_SET FAB::OptionalSections (MODE aMode)
 Schema sections that Table 4 marks O for aMode.
 
SECTION_SET FAB::RecommendedOptionalSections (MODE aMode)
 Optional schema sections that aMode selects by default.
 
SECTION_SET FAB::UnsupportedSections ()
 Schema sections that no KiCad board supplies.
 
SECTION_SET FAB::LegacySections ()
 Schema sections of the content that KiCad wrote before the function modes.
 
bool FAB::NeedsCadData (const SECTION_SET &aSet)
 True if an included schema section needs an Ecad/CadData element.
 
wxString FAB::SectionKeyString (const SECTION_SET &aSet)
 Give aSet as a sectionKey attribute value.
 
bool FAB::SectionSetFromKeyString (const wxString &aKey, SECTION_SET &aResult)
 Read a sectionKey attribute value Return false for an unknown character.
 
wxString FAB::ModeToken (MODE aMode)
 Table 4 function mode token such as FABRICATION.
 
std::optional< MODE > FAB::ModeFromToken (const wxString &aToken)
 Read a Table 4 function mode token in upper case or in lower case.