KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_sections.h File Reference
#include <bitset>
#include <initializer_list>
#include <optional>
#include <wx/string.h>
#include <jobs/job_export_pcb_fab.h>

Go to the source code of this file.

Classes

class  FAB::SECTION_SET
 Set of schema sections. More...
 

Namespaces

namespace  FAB
 

Typedefs

using FAB::MODE = JOB_EXPORT_PCB_FAB::DATA_SET
 Columns of Table 4 The job owns the enum so that every layer shares one type.
 

Enumerations

enum class  FAB::SECTION {
  FAB::PADSTACKS , FAB::BOM_AVL , FAB::PACKAGES , FAB::COMPONENTS ,
  FAB::STACKUP , FAB::PROFILE , FAB::SOLDERMASK , FAB::SOLDERPASTE ,
  FAB::SILKSCREEN , FAB::DRILL_ROUT , FAB::DOCUMENTATION , FAB::OUTER_COPPER ,
  FAB::INNER_COPPER , FAB::DIELECTRIC , FAB::MISC_FAB , FAB::LOGICAL_NET ,
  FAB::PHYSICAL_NET , FAB::DFX , FAB::COUNT
}
 Schema sections of the IPC-2581C function mode table, Table 4 p 80. More...
 
enum class  FAB::SECTION_RULE { FAB::EXCLUDED , FAB::RULE_OPTIONAL , FAB::REQUIRED }
 Table 4 cell values N O and Y. More...
 

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.