KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ipc2581_function_mode.cpp File Reference
#include "ipc2581_function_mode.h"
#include <array>
#include <utility>
#include <wx/translation.h>

Go to the source code of this file.

Namespaces

namespace  IPC2581
 

Functions

char IPC2581::SectionKeyChar (SECTION aSection)
 Return the Table 4 key character for aSection.
 
std::optional< SECTIONIPC2581::SectionFromKeyChar (char aKey)
 Return the schema section for a Table 4 key character.
 
SECTION_RULE IPC2581::SectionRule (MODE aMode, SECTION aSection)
 Return the Table 4 cell for aMode and aSection.
 
SECTION_SET IPC2581::RequiredSections (MODE aMode)
 Schema sections that Table 4 marks Y for aMode.
 
SECTION_SET IPC2581::OptionalSections (MODE aMode)
 Schema sections that Table 4 marks O for aMode.
 
SECTION_SET IPC2581::RecommendedOptionalSections (MODE aMode)
 Optional schema sections that aMode selects by default.
 
SECTION_SET IPC2581::UnsupportedSections ()
 Schema sections that no KiCad board supplies.
 
SECTION_SET IPC2581::LegacySections ()
 Schema sections of the content that KiCad wrote before the function modes.
 
bool IPC2581::NeedsCadData (const SECTION_SET &aSet)
 True if an included schema section needs an Ecad/CadData element.
 
wxString IPC2581::SectionKeyString (const SECTION_SET &aSet)
 Give aSet as a sectionKey attribute value.
 
bool IPC2581::SectionSetFromKeyString (const wxString &aKey, SECTION_SET &aResult)
 Read a sectionKey attribute value Return false for an unknown character.
 
wxString IPC2581::ModeToken (MODE aMode)
 Table 4 function mode token such as FABRICATION.
 
std::optional< MODEIPC2581::ModeFromToken (const wxString &aToken)
 Read a Table 4 function mode token in upper case or in lower case.
 
bool IPC2581::ModeSupported (MODE aMode, REVISION aRevision)
 True if KiCad can write aMode for aRevision.
 
std::optional< SECTIONIPC2581::SectionForBoardLayer (PCB_LAYER_ID aLayer)
 Schema section that holds the artwork of aLayer.
 
std::optional< SECTIONIPC2581::SectionForLayerFunction (const wxString &aLayerFunction, const wxString &aSide=wxEmptyString)
 Schema section that holds the layers with aLayerFunction.
 
RESOLVE_RESULT IPC2581::ResolveSections (REVISION aRevision, MODE aMode, const SECTION_SET &aRequested)
 Compare aRequested with Table 4 and give the attributes to remove and the conflicts.