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

A #PLUGIN derivation for saving and loading Pcbnew s-expression formatted files. More...

#include <pcb_io_kicad_sexpr.h>

Inheritance diagram for PCB_IO_KICAD_SEXPR:
PCB_IO IO_BASE CLIPBOARD_IO

Public Member Functions

const IO_BASE::IO_FILE_DESC GetBoardFileDesc () const override
 Returns board file description for the PCB_IO.
 
const IO_BASE::IO_FILE_DESC GetLibraryFileDesc () const override
 Get the descriptor for the individual library elements that this IO plugin operates on.
 
const IO_BASE::IO_FILE_DESC GetLibraryDesc () const override
 Get the descriptor for the library container that this IO plugin operates on.
 
void SetQueryUserCallback (std::function< bool(wxString aTitle, int aIcon, wxString aMessage, wxString aOKButtonTitle)> aCallback) override
 
bool CanReadBoard (const wxString &aFileName) const override
 Checks if this PCB_IO can read the specified board file.
 
void SaveBoard (const wxString &aFileName, BOARD *aBoard, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Write aBoard to a storage file in a format that this PCB_IO implementation knows about or it can be used to write a portion of aBoard to a special kind of export file.
 
BOARDLoadBoard (const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties=nullptr, PROJECT *aProject=nullptr) override
 Load information from some input file format that this PCB_IO implementation knows about into either a new BOARD or an existing one.
 
BOARDDoLoad (LINE_READER &aReader, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties, PROGRESS_REPORTER *aProgressReporter, unsigned aLineCount)
 
void FootprintEnumerate (wxArrayString &aFootprintNames, const wxString &aLibraryPath, bool aBestEfforts, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Return a list of footprint names contained within the library at aLibraryPath.
 
const FOOTPRINTGetEnumeratedFootprint (const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management.
 
bool FootprintExists (const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Check for the existence of a footprint.
 
FOOTPRINTImportFootprint (const wxString &aFootprintPath, wxString &aFootprintNameOut, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Load a single footprint from aFootprintPath and put its name in aFootprintNameOut.
 
FOOTPRINTFootprintLoad (const wxString &aLibraryPath, const wxString &aFootprintName, bool aKeepUUID=false, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PCB_IO knows about.
 
void FootprintSave (const wxString &aLibraryPath, const FOOTPRINT *aFootprint, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Write aFootprint to an existing library located at aLibraryPath.
 
void FootprintDelete (const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Delete aFootprintName from the library at aLibraryPath.
 
long long GetLibraryTimestamp (const wxString &aLibraryPath) const override
 Generate a timestamp representing all the files in the library (including the library directory).
 
void CreateLibrary (const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Create a new empty library at aLibraryPath empty.
 
bool DeleteLibrary (const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
 Delete an existing library and returns true, or if library does not exist returns false, or throws an exception if library exists but is read only or cannot be deleted for some other reason.
 
bool IsLibraryWritable (const wxString &aLibraryPath) override
 Return true if the library at aLibraryPath is writable.
 
 PCB_IO_KICAD_SEXPR (int aControlFlags=CTL_FOR_BOARD)
 
virtual ~PCB_IO_KICAD_SEXPR ()
 
void Format (const BOARD_ITEM *aItem) const
 Output aItem to aFormatter in s-expression format.
 
std::string GetStringOutput (bool doClear)
 
void SetOutputFormatter (OUTPUTFORMATTER *aFormatter)
 
BOARD_ITEMParse (const wxString &aClipboardSourceInput)
 
virtual bool CanReadFootprint (const wxString &aFileName) const
 Checks if this PCB_IO can read a footprint from specified file or directory.
 
virtual void SetQueryUserCallback (std::function< bool(wxString aTitle, int aIcon, wxString aMessage, wxString aAction)> aCallback)
 Registers a KIDIALOG callback for collecting info from the user.
 
virtual std::vector< FOOTPRINT * > GetImportedCachedLibraryFootprints ()
 Return a container with the cached library footprints generated in the last call to Load.
 
virtual void PrefetchLib (const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr)
 If possible, prefetches the specified library (e.g.
 
virtual void GetLibraryOptions (std::map< std::string, UTF8 > *aListToAppendTo) const override
 Append supported PLUGIN options to aListToAppenTo along with internationalized descriptions.
 
const wxString & GetName () const
 Return a brief hard coded name for this IO interface.
 
virtual void SetReporter (REPORTER *aReporter)
 Set an optional reporter for warnings/errors.
 
virtual void SetProgressReporter (PROGRESS_REPORTER *aReporter)
 Set an optional progress reporter.
 
virtual bool CanReadLibrary (const wxString &aFileName) const
 Checks if this IO object can read the specified library file/directory.
 
virtual void Report (const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
 
virtual void AdvanceProgressPhase ()
 

Protected Member Functions

void validateCache (const wxString &aLibraryPath, bool checkModified=true)
 
const FOOTPRINTgetFootprint (const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties, bool checkModified)
 
void init (const std::map< std::string, UTF8 > *aProperties)
 
void formatSetup (const BOARD *aBoard) const
 formats the board setup information
 
void formatGeneral (const BOARD *aBoard) const
 formats the General section of the file
 
void formatBoardLayers (const BOARD *aBoard) const
 formats the board layer information
 
void formatNetInformation (const BOARD *aBoard) const
 formats the Nets and Netclasses
 
void formatProperties (const BOARD *aBoard) const
 formats the Nets and Netclasses
 
void formatHeader (const BOARD *aBoard) const
 writes everything that comes before the board_items, like settings and layers etc
 
void formatTeardropParameters (const TEARDROP_PARAMETERS &tdParams) const
 

Protected Attributes

wxString m_error
 for throwing exceptions
 
FP_CACHEm_cache
 Footprint library cache.
 
LINE_READERm_reader
 no ownership
 
wxString m_filename
 for saves only, name is in m_reader for loads
 
STRING_FORMATTER m_sf
 
OUTPUTFORMATTERm_out
 output any Format()s to this, no ownership
 
int m_ctl
 
NETINFO_MAPPINGm_mapping
 mapping for net codes, so only not empty net codes are stored with consecutive integers as net codes
 
std::function< bool(wxString aTitle, int aIcon, wxString aMsg, wxString aAction)> m_queryUserCallback
 
BOARDm_board
 The board BOARD being worked on, no ownership here.
 
const std::map< std::string, UTF8 > * m_props
 Properties passed via Save() or Load(), no ownership, may be NULL.
 
wxString m_name
 Name of the IO loader.
 
REPORTERm_reporter
 Reporter to log errors/warnings to, may be nullptr.
 
PROGRESS_REPORTERm_progressReporter
 Progress reporter to track the progress of the operation, may be nullptr.
 

Private Member Functions

void format (const BOARD *aBoard) const
 
void format (const PCB_DIMENSION_BASE *aDimension) const
 
void format (const PCB_REFERENCE_IMAGE *aBitmap) const
 
void format (const PCB_GROUP *aGroup) const
 
void format (const PCB_SHAPE *aSegment) const
 
void format (const PCB_TARGET *aTarget) const
 
void format (const FOOTPRINT *aFootprint) const
 
void format (const PAD *aPad) const
 
void format (const PCB_TEXT *aText) const
 
void format (const PCB_TEXTBOX *aTextBox) const
 
void format (const PCB_TABLE *aTable) const
 
void format (const PCB_GENERATOR *aGenerator) const
 
void format (const PCB_TRACK *aTrack) const
 
void format (const ZONE *aZone) const
 
void formatPolyPts (const SHAPE_LINE_CHAIN &outline, const FOOTPRINT *aParentFP=nullptr) const
 
void formatRenderCache (const EDA_TEXT *aText) const
 
void formatLayer (PCB_LAYER_ID aLayer, bool aIsKnockout=false) const
 
void formatLayers (LSET aLayerMask) const
 
void formatTenting (const PADSTACK &aPadstack) const
 

Friends

class FP_CACHE
 

Detailed Description

A #PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.

Note
This class is not thread safe, but it is re-entrant multiple times in sequence.

Definition at line 291 of file pcb_io_kicad_sexpr.h.

Constructor & Destructor Documentation

◆ PCB_IO_KICAD_SEXPR()

PCB_IO_KICAD_SEXPR::PCB_IO_KICAD_SEXPR ( int  aControlFlags = CTL_FOR_BOARD)

Definition at line 2663 of file pcb_io_kicad_sexpr.cpp.

References init(), m_out, and m_sf.

◆ ~PCB_IO_KICAD_SEXPR()

PCB_IO_KICAD_SEXPR::~PCB_IO_KICAD_SEXPR ( )
virtual

Definition at line 2673 of file pcb_io_kicad_sexpr.cpp.

References m_cache, and m_mapping.

Member Function Documentation

◆ AdvanceProgressPhase()

void IO_BASE::AdvanceProgressPhase ( )
virtualinherited

◆ CanReadBoard()

bool PCB_IO_KICAD_SEXPR::CanReadBoard ( const wxString &  aFileName) const
overridevirtual

Checks if this PCB_IO can read the specified board file.

If not overriden, extension check is used.

Reimplemented from PCB_IO.

Definition at line 289 of file pcb_io_kicad_sexpr.cpp.

References PCB_IO::CanReadBoard(), PCB_IO_KICAD_SEXPR_PARSER::IsValidBoardHeader(), and m_queryUserCallback.

◆ CanReadFootprint()

bool PCB_IO::CanReadFootprint ( const wxString &  aFileName) const
virtualinherited

Checks if this PCB_IO can read a footprint from specified file or directory.

If not overriden, extension check is used.

Reimplemented in PCB_IO_CADSTAR_ARCHIVE, PCB_IO_EAGLE, PCB_IO_EASYEDA, PCB_IO_IPC2581, PCB_IO_KICAD_LEGACY, and PCB_IO_ODBPP.

Definition at line 58 of file pcb_io.cpp.

References IO_BASE::GetLibraryFileDesc(), and IO_BASE::IO_FILE_DESC::m_FileExtensions.

Referenced by PCB_IO_CADSTAR_ARCHIVE::CanReadFootprint(), and PCB_IO_KICAD_LEGACY::CanReadFootprint().

◆ CanReadLibrary()

bool IO_BASE::CanReadLibrary ( const wxString &  aFileName) const
virtualinherited

Checks if this IO object can read the specified library file/directory.

If not overriden, extension check is used.

Note
This is not a check that the file system object is readable by the user, but a check that this IO object can parse the given library.

Reimplemented in SCH_IO_ALTIUM, SCH_IO_CADSTAR_ARCHIVE, SCH_IO_EAGLE, SCH_IO_EASYEDA, SCH_IO_KICAD_LEGACY, PCB_IO_ALTIUM_DESIGNER, PCB_IO_CADSTAR_ARCHIVE, PCB_IO_EAGLE, PCB_IO_EASYEDA, PCB_IO_IPC2581, and PCB_IO_ODBPP.

Definition at line 69 of file io_base.cpp.

References IO_BASE::GetLibraryDesc(), IO_BASE::IO_FILE_DESC::m_ExtensionsInDir, IO_BASE::IO_FILE_DESC::m_FileExtensions, and IO_BASE::IO_FILE_DESC::m_IsFile.

Referenced by SCH_IO_ALTIUM::CanReadLibrary(), SCH_IO_CADSTAR_ARCHIVE::CanReadLibrary(), SCH_IO_EAGLE::CanReadLibrary(), SCH_IO_KICAD_LEGACY::CanReadLibrary(), PCB_IO_ALTIUM_DESIGNER::CanReadLibrary(), PCB_IO_CADSTAR_ARCHIVE::CanReadLibrary(), and PCB_IO_EAGLE::CanReadLibrary().

◆ CreateLibrary()

void PCB_IO_KICAD_SEXPR::CreateLibrary ( const wxString &  aLibraryPath,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Create a new empty library at aLibraryPath empty.

It is an error to attempt to create an existing library or to attempt to create on a "read only" location.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several elements.
aPropertiesis an associative array that can be used to tell the library create function anything special, because it can take any number of additional named tuning arguments that the IO is known to support. The caller continues to own this object (IO may not delete it), and IOs should expect it to be optionally NULL.
Exceptions
IO_ERRORif there is a problem finding the library, or creating it.

Reimplemented from IO_BASE.

Definition at line 3020 of file pcb_io_kicad_sexpr.cpp.

References _, FP_CACHE, init(), m_cache, FP_CACHE::Save(), and THROW_IO_ERROR.

◆ DeleteLibrary()

bool PCB_IO_KICAD_SEXPR::DeleteLibrary ( const wxString &  aLibraryPath,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Delete an existing library and returns true, or if library does not exist returns false, or throws an exception if library exists but is read only or cannot be deleted for some other reason.

Parameters
aLibraryPathis a locator for the "library", usually a directory or file which will contain several elements.
aPropertiesis an associative array that can be used to tell the library delete implementation function anything special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
Returns
true if library deleted, false if library did not exist.
Exceptions
IO_ERRORif there is a problem deleting an existing library.

Reimplemented from IO_BASE.

Definition at line 3038 of file pcb_io_kicad_sexpr.cpp.

References _, FP_CACHE::IsPath(), FILEEXT::KiCadFootprintFileExtension, m_cache, THROW_IO_ERROR, and traceKicadPcbPlugin.

◆ DoLoad()

BOARD * PCB_IO_KICAD_SEXPR::DoLoad ( LINE_READER aReader,
BOARD aAppendToMe,
const std::map< std::string, UTF8 > *  aProperties,
PROGRESS_REPORTER aProgressReporter,
unsigned  aLineCount 
)

◆ FootprintDelete()

void PCB_IO_KICAD_SEXPR::FootprintDelete ( const wxString &  aLibraryPath,
const wxString &  aFootprintName,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Delete aFootprintName from the library at aLibraryPath.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
aFootprintNameis the name of a footprint to delete from the specified library.
aPropertiesis an associative array that can be used to tell the library delete function anything special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
Exceptions
IO_ERRORif there is a problem finding the footprint or the library, or deleting it.

Reimplemented from PCB_IO.

Definition at line 2994 of file pcb_io_kicad_sexpr.cpp.

References _, init(), FP_CACHE::IsWritable(), m_cache, FP_CACHE::Remove(), THROW_IO_ERROR, and validateCache().

◆ FootprintEnumerate()

void PCB_IO_KICAD_SEXPR::FootprintEnumerate ( wxArrayString &  aFootprintNames,
const wxString &  aLibraryPath,
bool  aBestEfforts,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Return a list of footprint names contained within the library at aLibraryPath.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
aPropertiesis an associative array that can be used to tell the plugin anything needed about how to perform with respect to aLibraryPath. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
aFootprintNamesis the array of available footprint names inside a library.
aBestEffortsif true, don't throw on errors, just return an empty list.
Exceptions
IO_ERRORif the library cannot be found, or footprint cannot be loaded.

Reimplemented from PCB_IO.

Definition at line 2770 of file pcb_io_kicad_sexpr.cpp.

References FP_CACHE::GetFootprints(), init(), m_cache, THROW_IO_ERROR, validateCache(), and IO_ERROR::What().

◆ FootprintExists()

bool PCB_IO_KICAD_SEXPR::FootprintExists ( const wxString &  aLibraryPath,
const wxString &  aFootprintName,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Check for the existence of a footprint.

Reimplemented from PCB_IO.

Definition at line 2835 of file pcb_io_kicad_sexpr.cpp.

References FILEEXT::KiCadFootprintFileExtension.

◆ FootprintLoad()

FOOTPRINT * PCB_IO_KICAD_SEXPR::FootprintLoad ( const wxString &  aLibraryPath,
const wxString &  aFootprintName,
bool  aKeepUUID = false,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PCB_IO knows about.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
aFootprintNameis the name of the footprint to load.
aPropertiesis an associative array that can be used to tell the loader implementation to do something special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
aKeepUUID= true to keep initial items UUID, false to set new UUID normally true if loaded in the footprint editor, false if loaded in the board editor. Make sense only in kicad_plugin
Returns
the FOOTPRINT object if found, caller owns it, else NULL if not found.
Exceptions
IO_ERRORif the library cannot be found or read. No exception is thrown in the case where aFootprintName cannot be found.

Reimplemented from PCB_IO.

Definition at line 2870 of file pcb_io_kicad_sexpr.cpp.

References FOOTPRINT::Clone(), copy, FOOTPRINT::Duplicate(), getFootprint(), and fontconfig::FONTCONFIG::SetReporter().

◆ FootprintSave()

void PCB_IO_KICAD_SEXPR::FootprintSave ( const wxString &  aLibraryPath,
const FOOTPRINT aFootprint,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Write aFootprint to an existing library located at aLibraryPath.

If a footprint by the same name already exists, it is replaced.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
aFootprintis what to store in the library. The caller continues to own the footprint after this call.
aPropertiesis an associative array that can be used to tell the saver how to save the footprint, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
Exceptions
IO_ERRORif there is a problem saving.

Reimplemented from PCB_IO.

Definition at line 2896 of file pcb_io_kicad_sexpr.cpp.

References _, ANGLE_0, FOOTPRINT::Clone(), CTL_FOR_LIBRARY, FP_CACHE::Exists(), F_Cu, FOOTPRINT::Flip(), FP_CACHE::GetFootprints(), FOOTPRINT::GetFPID(), FOOTPRINT::GetLayer(), LIB_ID::GetLibItemName(), FOOTPRINT::GetPosition(), init(), FP_CACHE::IsWritable(), FILEEXT::KiCadFootprintFileExtension, Kiface(), KIFACE_BASE::KifaceSettings(), m_cache, m_ctl, PCBNEW_SETTINGS::m_FlipDirection, Pgm(), ReplaceIllegalFileNameChars(), WX_FILENAME::ResolvePossibleSymlinks(), FP_CACHE::Save(), FOOTPRINT::SetOrientation(), EDA_ITEM::SetParent(), BOARD_ITEM::SetParentGroup(), THROW_IO_ERROR, traceKicadPcbPlugin, validateCache(), and UTF8::wx_str().

◆ format() [1/14]

◆ Format()

◆ format() [2/14]

void PCB_IO_KICAD_SEXPR::format ( const FOOTPRINT aFootprint) const
private

Definition at line 1105 of file pcb_io_kicad_sexpr.cpp.

References KIID_PATH::AsString(), CTL_FOR_BOARD, CTL_OMIT_AT, CTL_OMIT_FOOTPRINT_VERSION, CTL_OMIT_INITIAL_COMMENTS, CTL_OMIT_LIBNAME, CTL_OMIT_PATH, CTL_OMIT_UUIDS, LIB_ID::Format(), format(), Format(), EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::FormatBool(), FormatDouble2Str(), formatInternalUnits(), formatLayer(), KICAD_FORMAT::FormatUuid(), FP_ALLOW_MISSING_COURTYARD, FP_ALLOW_SOLDERMASK_BRIDGES, FP_BOARD_ONLY, FP_DNP, FP_EXCLUDE_FROM_BOM, FP_EXCLUDE_FROM_POS_FILES, FP_SMD, FP_THROUGH_HOLE, EMBEDDED_FILES::GetAreFontsEmbedded(), FOOTPRINT::GetAttributes(), FOOTPRINT::GetComponentClass(), COMPONENT_CLASS::GetConstituentClasses(), FOOTPRINT::GetEmbeddedFiles(), FOOTPRINT::GetFields(), FOOTPRINT::GetFilters(), FOOTPRINT::GetFPID(), FOOTPRINT::GetInitialComments(), FOOTPRINT::GetKeywords(), FOOTPRINT::GetLayer(), FOOTPRINT::GetLibDescription(), LIB_ID::GetLibItemName(), FOOTPRINT::GetLocalClearance(), FOOTPRINT::GetLocalSolderMaskMargin(), FOOTPRINT::GetLocalSolderPasteMargin(), FOOTPRINT::GetLocalSolderPasteMarginRatio(), FOOTPRINT::GetLocalZoneConnection(), GetMajorMinorVersion(), FOOTPRINT::GetNetTiePadGroups(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPath(), FOOTPRINT::GetPosition(), FOOTPRINT::GetPrivateLayers(), FOOTPRINT::GetSheetfile(), FOOTPRINT::GetSheetname(), FOOTPRINT::GraphicalItems(), group, FOOTPRINT::Groups(), EMBEDDED_FILES::IsEmpty(), FOOTPRINT::IsLocked(), FOOTPRINT::IsNetTie(), FOOTPRINT::IsPlaced(), EDA_ANGLE::IsZero(), m_ctl, m_out, EDA_ITEM::m_Uuid, FOOTPRINT::Models(), LSET::Name(), pad, FOOTPRINT::Pads(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotes(), OUTPUTFORMATTER::Quotew(), FOOTPRINT::Reference(), LSET::Seq(), SEXPR_BOARD_FILE_VERSION, TO_UTF8, FOOTPRINT::Value(), EMBEDDED_FILES::WriteEmbeddedFiles(), and FOOTPRINT::Zones().

◆ format() [3/14]

void PCB_IO_KICAD_SEXPR::format ( const PAD aPad) const
private

Definition at line 1440 of file pcb_io_kicad_sexpr.cpp.

References _, PADSTACK::ALL_LAYERS, ANGLE_45, ANGLE_90, B_Cu, PADSTACK::Clearance(), PADSTACK::CONVEXHULL, CTL_OMIT_PAD_NETS, LSET::CuStack(), delta, F_Cu, EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::FormatBool(), FormatDouble2Str(), formatInternalUnits(), formatLayers(), formatPolyPts(), formatTeardropParameters(), formatTenting(), KICAD_FORMAT::FormatUuid(), PADSTACK::FRONT_INNER_BACK, PAD::GetAnchorPadShape(), PAD::GetAttribute(), BOARD_ITEM::GetBoard(), PAD::GetChamferPositions(), PAD::GetChamferRectRatio(), BOARD::GetCopperLayerCount(), PAD::GetCustomShapeInZoneOpt(), PAD::GetDelta(), PAD::GetDrillShape(), PAD::GetDrillSize(), BOARD::GetEnabledLayers(), BOARD_ITEM::GetFPRelativePosition(), PAD::GetKeepTopBottom(), PAD::GetLayerSet(), PAD::GetLocalClearance(), PAD::GetLocalSolderMaskMargin(), PAD::GetLocalSolderPasteMargin(), PAD::GetLocalSolderPasteMarginRatio(), PAD::GetLocalZoneConnection(), BOARD_CONNECTED_ITEM::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetname(), PAD::GetNumber(), PAD::GetOffset(), PAD::GetOrientation(), PAD::GetPadToDieLength(), PAD::GetPinFunction(), PAD::GetPinType(), PAD::GetPrimitives(), PAD::GetProperty(), PAD::GetRemoveUnconnected(), PAD::GetRoundRectRadiusRatio(), PAD::GetShape(), PAD::GetSize(), BOARD_CONNECTED_ITEM::GetTeardropParams(), PAD::GetThermalGap(), PAD::GetThermalSpokeAngle(), PAD::GetThermalSpokeWidth(), PAD::GetZoneLayerOverride(), PADSTACK::INNER_LAYERS, isDefaultTeardropParameters(), EDA_ANGLE::IsZero(), m_ctl, m_mapping, m_out, EDA_ITEM::m_Uuid, MAX_CU_LAYERS, PADSTACK::Mode(), LSET::Name(), PADSTACK::NORMAL, SHAPE_POLY_SET::Outline(), PAD::Padstack(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), RECT_CHAMFER_BOTTOM_LEFT, RECT_CHAMFER_BOTTOM_RIGHT, RECT_CHAMFER_TOP_LEFT, RECT_CHAMFER_TOP_RIGHT, PADSTACK::ThermalGap(), PADSTACK::ThermalSpokeAngle(), PADSTACK::ThermalSpokeWidth(), THROW_IO_ERROR, NETINFO_MAPPING::Translate(), NETINFO_LIST::UNCONNECTED, VECTOR2< T >::x, VECTOR2< T >::y, ZLO_FORCE_FLASHED, and PADSTACK::ZoneConnection().

◆ format() [4/14]

◆ format() [5/14]

◆ format() [6/14]

◆ format() [7/14]

◆ format() [8/14]

◆ format() [9/14]

◆ format() [10/14]

◆ format() [11/14]

◆ format() [12/14]

◆ format() [13/14]

◆ format() [14/14]

void PCB_IO_KICAD_SEXPR::format ( const ZONE aZone) const
private

Definition at line 2443 of file pcb_io_kicad_sexpr.cpp.

References _, EDA_ANGLE::AsDegrees(), KICAD_FORMAT::FormatBool(), FormatDouble2Str(), formatInternalUnits(), formatLayer(), formatLayers(), formatPolyPts(), KICAD_FORMAT::FormatUuid(), ZONE::GetAssignedPriority(), BOARD_ITEM::GetBoard(), ZONE::GetBorderHatchPitch(), ZONE::GetCornerRadius(), ZONE::GetCornerSmoothingType(), ZONE::GetDoNotAllowCopperPour(), ZONE::GetDoNotAllowFootprints(), ZONE::GetDoNotAllowPads(), ZONE::GetDoNotAllowTracks(), ZONE::GetDoNotAllowVias(), BOARD::GetEnabledLayers(), ZONE::GetFilledPolysList(), ZONE::GetFillMode(), ZONE::GetFirstLayer(), ZONE::GetHatchBorderAlgorithm(), ZONE::GetHatchGap(), ZONE::GetHatchHoleMinArea(), ZONE::GetHatchOrientation(), ZONE::GetHatchSmoothingLevel(), ZONE::GetHatchSmoothingValue(), ZONE::GetHatchStyle(), ZONE::GetHatchThickness(), ZONE::GetIslandRemovalMode(), ZONE::GetIsRuleArea(), ZONE::GetLayerSet(), ZONE::GetLocalClearance(), ZONE::GetMinIslandArea(), ZONE::GetMinThickness(), BOARD_CONNECTED_ITEM::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetname(), ZONE::GetNumCorners(), ZONE::GetPadConnection(), ZONE::GetRuleAreaPlacementEnabled(), ZONE::GetRuleAreaPlacementSource(), ZONE::GetRuleAreaPlacementSourceType(), ZONE::GetTeardropAreaType(), ZONE::GetThermalReliefGap(), ZONE::GetThermalReliefSpokeWidth(), ZONE::GetZoneName(), ZONE::IsFilled(), ZONE::IsIsland(), BOARD_ITEM::IsLocked(), ZONE::IsOnCopperLayer(), ZONE::IsTeardropArea(), EDA_IU_SCALE::IU_PER_MM, m_mapping, m_out, EDA_ITEM::m_Uuid, LSET::Name(), ZONE::Outline(), pcbIUScale, SHAPE_POLY_SET::Polygon(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), LSET::Seq(), ZONE_SETTINGS::SMOOTHING_CHAMFER, ZONE_SETTINGS::SMOOTHING_FILLET, ZONE_SETTINGS::SMOOTHING_NONE, THROW_IO_ERROR, and NETINFO_MAPPING::Translate().

◆ formatBoardLayers()

void PCB_IO_KICAD_SEXPR::formatBoardLayers ( const BOARD aBoard) const
protected

◆ formatGeneral()

void PCB_IO_KICAD_SEXPR::formatGeneral ( const BOARD aBoard) const
protected

◆ formatHeader()

void PCB_IO_KICAD_SEXPR::formatHeader ( const BOARD aBoard) const
protected

writes everything that comes before the board_items, like settings and layers etc

Definition at line 707 of file pcb_io_kicad_sexpr.cpp.

References formatBoardLayers(), formatGeneral(), formatNetInformation(), formatProperties(), and formatSetup().

Referenced by format().

◆ formatLayer()

void PCB_IO_KICAD_SEXPR::formatLayer ( PCB_LAYER_ID  aLayer,
bool  aIsKnockout = false 
) const
private

Definition at line 483 of file pcb_io_kicad_sexpr.cpp.

References m_out, LSET::Name(), OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().

Referenced by format().

◆ formatLayers()

void PCB_IO_KICAD_SEXPR::formatLayers ( LSET  aLayerMask) const
private

◆ formatNetInformation()

void PCB_IO_KICAD_SEXPR::formatNetInformation ( const BOARD aBoard) const
protected

formats the Nets and Netclasses

Definition at line 682 of file pcb_io_kicad_sexpr.cpp.

References m_mapping, m_out, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), and NETINFO_MAPPING::Translate().

Referenced by formatHeader(), and CLIPBOARD_IO::SaveSelection().

◆ formatPolyPts()

void PCB_IO_KICAD_SEXPR::formatPolyPts ( const SHAPE_LINE_CHAIN outline,
const FOOTPRINT aParentFP = nullptr 
) const
private

◆ formatProperties()

void PCB_IO_KICAD_SEXPR::formatProperties ( const BOARD aBoard) const
protected

formats the Nets and Netclasses

Definition at line 696 of file pcb_io_kicad_sexpr.cpp.

References BOARD::GetProperties(), m_out, OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().

Referenced by formatHeader().

◆ formatRenderCache()

◆ formatSetup()

◆ formatTeardropParameters()

◆ formatTenting()

void PCB_IO_KICAD_SEXPR::formatTenting ( const PADSTACK aPadstack) const
private

◆ GetBoardFileDesc()

const IO_BASE::IO_FILE_DESC PCB_IO_KICAD_SEXPR::GetBoardFileDesc ( ) const
inlineoverridevirtual

Returns board file description for the PCB_IO.

Reimplemented from PCB_IO.

Definition at line 294 of file pcb_io_kicad_sexpr.h.

References _HKI.

◆ GetEnumeratedFootprint()

const FOOTPRINT * PCB_IO_KICAD_SEXPR::GetEnumeratedFootprint ( const wxString &  aLibraryPath,
const wxString &  aFootprintName,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management.

Reimplemented from PCB_IO.

Definition at line 2827 of file pcb_io_kicad_sexpr.cpp.

References getFootprint().

◆ getFootprint()

const FOOTPRINT * PCB_IO_KICAD_SEXPR::getFootprint ( const wxString &  aLibraryPath,
const wxString &  aFootprintName,
const std::map< std::string, UTF8 > *  aProperties,
bool  checkModified 
)
protected

◆ GetImportedCachedLibraryFootprints()

std::vector< FOOTPRINT * > PCB_IO::GetImportedCachedLibraryFootprints ( )
virtualinherited

Return a container with the cached library footprints generated in the last call to Load.

This function is intended to be used ONLY by the non-KiCad board importers for the purpose of obtaining the footprint library of the design and creating a project-specific library.

Returns
Footprints (caller owns the objects)

Reimplemented in PCB_IO_CADSTAR_ARCHIVE, PCB_IO_EAGLE, PCB_IO_EASYEDA, PCB_IO_EASYEDAPRO, PCB_IO_IPC2581, and PCB_IO_ODBPP.

Definition at line 81 of file pcb_io.cpp.

References NOT_IMPLEMENTED.

◆ GetLibraryDesc()

const IO_BASE::IO_FILE_DESC PCB_IO_KICAD_SEXPR::GetLibraryDesc ( ) const
inlineoverridevirtual

Get the descriptor for the library container that this IO plugin operates on.

Returns
File descriptor for the container of the library elements

Implements IO_BASE.

Definition at line 308 of file pcb_io_kicad_sexpr.h.

References _HKI.

◆ GetLibraryFileDesc()

const IO_BASE::IO_FILE_DESC PCB_IO_KICAD_SEXPR::GetLibraryFileDesc ( ) const
inlineoverridevirtual

Get the descriptor for the individual library elements that this IO plugin operates on.

For libraries where all the elements are in a single container (e.g. all elements in a single file), then this will return the descriptor from IO_BASE::GetLibraryDesc().

Returns
File descriptor for the library elements

Reimplemented from IO_BASE.

Definition at line 303 of file pcb_io_kicad_sexpr.h.

References _HKI.

◆ GetLibraryOptions()

void PCB_IO::GetLibraryOptions ( std::map< std::string, UTF8 > *  aListToAppendTo) const
overridevirtualinherited

Append supported PLUGIN options to aListToAppenTo along with internationalized descriptions.

Options are typically appended so that a derived #PLUGIN can call its base class function by the same name first, thus inheriting options declared there. Some base class options could pertain to all Footprint*() functions in all derived PLUGINs.

Note
Since aListToAppendTo is a #PROPERTIES object, all options will be unique and last guy wins.
Parameters
aListToAppendToholds a tuple of
option
This eventually is what shows up into the fp-lib-table "options" field, possibly combined with others.
internationalized description
The internationalized description is displayed in DIALOG_PLUGIN_OPTIONS. It may be multi-line and be quite explanatory of the option.

In the future perhaps aListToAppendTo evolves to something capable of also holding a wxValidator for the cells in said dialog: http://forums.wxwidgets.org/viewtopic.php?t=23277&p=104180. This would require a 3 column list, and introducing wx GUI knowledge to PLUGIN, which has been avoided to date.

Reimplemented from IO_BASE.

Definition at line 173 of file pcb_io.cpp.

References _, and IO_BASE::GetLibraryOptions().

◆ GetLibraryTimestamp()

long long PCB_IO_KICAD_SEXPR::GetLibraryTimestamp ( const wxString &  aLibraryPath) const
overridevirtual

Generate a timestamp representing all the files in the library (including the library directory).

Timestamps should not be considered ordered, they either match or they don't.

Implements PCB_IO.

Definition at line 3014 of file pcb_io_kicad_sexpr.cpp.

References FP_CACHE::GetTimestamp().

◆ GetName()

const wxString & IO_BASE::GetName ( ) const
inlineinherited

Return a brief hard coded name for this IO interface.

Definition at line 75 of file io_base.h.

Referenced by SCH_IO_ALTIUM::ParseLibFile().

◆ GetStringOutput()

std::string PCB_IO_KICAD_SEXPR::GetStringOutput ( bool  doClear)
inline

◆ ImportFootprint()

FOOTPRINT * PCB_IO_KICAD_SEXPR::ImportFootprint ( const wxString &  aFootprintPath,
wxString &  aFootprintNameOut,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Load a single footprint from aFootprintPath and put its name in aFootprintNameOut.

If this is a footprint library, the first footprint should be loaded. The default implementation uses FootprintEnumerate and FootprintLoad to load first footprint.

Parameters
aLibraryPathis a path of the footprint file.
aFootprintNameOutis the name output of the loaded footprint.
aPropertiesis an associative array that can be used to tell the loader implementation to do something special, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
Returns
the FOOTPRINT object if found, caller owns it, else NULL if not found.
Exceptions
IO_ERRORif the footprint cannot be found or read.

Reimplemented from PCB_IO.

Definition at line 2851 of file pcb_io_kicad_sexpr.cpp.

References Parse(), and fontconfig::FONTCONFIG::SetReporter().

◆ init()

void PCB_IO_KICAD_SEXPR::init ( const std::map< std::string, UTF8 > *  aProperties)
protected

◆ IsLibraryWritable()

bool PCB_IO_KICAD_SEXPR::IsLibraryWritable ( const wxString &  aLibraryPath)
overridevirtual

Return true if the library at aLibraryPath is writable.

The system libraries are typically read only because of where they are installed..

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
Exceptions
IO_ERRORif no library at aLibraryPath exists.

Reimplemented from IO_BASE.

Definition at line 3115 of file pcb_io_kicad_sexpr.cpp.

References init(), FP_CACHE::IsWritable(), m_cache, and validateCache().

◆ LoadBoard()

BOARD * PCB_IO_KICAD_SEXPR::LoadBoard ( const wxString &  aFileName,
BOARD aAppendToMe,
const std::map< std::string, UTF8 > *  aProperties = nullptr,
PROJECT aProject = nullptr 
)
overridevirtual

Load information from some input file format that this PCB_IO implementation knows about into either a new BOARD or an existing one.

This may be used to load an entire new BOARD, or to augment an existing one if aAppendToMe is not NULL.

Parameters
aFileNameis the name of the file to use as input and may be foreign in nature or native in nature.
aAppendToMeis an existing BOARD to append to, but if NULL then this means "do not append, rather load anew".
aPropertiesis an associative array that can be used to tell the loader how to load the file, because it can take any number of additional named arguments that the plugin is known to support. These are tuning parameters for the import or load. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
aProjectis the optional PROJECT object primarily used by third party importers.
Returns
the successfully loaded board, or the same one as aAppendToMe if aAppendToMe was not NULL, and caller owns it.
Exceptions
IO_ERRORif there is a problem loading, and its contents should say what went wrong, using line number and character offsets of the input file if possible.

Reimplemented from PCB_IO.

Definition at line 2680 of file pcb_io_kicad_sexpr.cpp.

References _, DoLoad(), WXLOG_REPORTER::GetInstance(), PROGRESS_REPORTER::KeepRefreshing(), IO_BASE::m_progressReporter, FILE_LINE_READER::ReadLine(), PROGRESS_REPORTER::Report(), FILE_LINE_READER::Rewind(), BOARD::SetFileName(), fontconfig::FONTCONFIG::SetReporter(), and THROW_IO_ERROR.

Referenced by PNS_LOG_FILE::Load().

◆ Parse()

BOARD_ITEM * PCB_IO_KICAD_SEXPR::Parse ( const wxString &  aClipboardSourceInput)

◆ PrefetchLib()

void PCB_IO::PrefetchLib ( const wxString &  aLibraryPath,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
virtualinherited

If possible, prefetches the specified library (e.g.

performing downloads). Does not parse. Threadsafe.

This is a no-op for libraries that cannot be prefetched. Plugins that cannot prefetch need not override this; a default no-op is provided.

Parameters
aLibraryPathis a locator for the "library", usually a directory, file, or URL containing several footprints.
aPropertiesis an associative array that can be used to tell the plugin anything needed about how to perform with respect to aLibraryPath. The caller continues to own this object (plugin may not delete it), and plugins should expect it to be optionally NULL.
Exceptions
IO_ERRORif there is an error prefetching the library.

Definition at line 103 of file pcb_io.cpp.

◆ Report()

void IO_BASE::Report ( const wxString &  aText,
SEVERITY  aSeverity = RPT_SEVERITY_UNDEFINED 
)
virtualinherited

◆ SaveBoard()

void PCB_IO_KICAD_SEXPR::SaveBoard ( const wxString &  aFileName,
BOARD aBoard,
const std::map< std::string, UTF8 > *  aProperties = nullptr 
)
overridevirtual

Write aBoard to a storage file in a format that this PCB_IO implementation knows about or it can be used to write a portion of aBoard to a special kind of export file.

Parameters
aFileNameis the name of a file to save to on disk.
aBoardis the class BOARD in memory document tree from which to extract information when writing to aFileName. The caller continues to own the BOARD, and the plugin should refrain from modifying the BOARD if possible.
aPropertiesis an associative array that can be used to tell the saver how to save the file, because it can take any number of additional named tuning arguments that the plugin is known to support. The caller continues to own this object (plugin may not delete it) and plugins should expect it to be optionally NULL.
Exceptions
IO_ERRORif there is a problem saving or exporting.

Reimplemented from PCB_IO.

Definition at line 309 of file pcb_io_kicad_sexpr.cpp.

References _, EMBEDDED_FILES::ClearEmbeddedFonts(), BOARD::EmbedFonts(), OUTPUTFORMATTER::Finish(), Format(), EMBEDDED_FILES::GetAreFontsEmbedded(), BOARD::GetEmbeddedFiles(), GetMajorMinorVersion(), BOARD::GroupsSanityCheck(), init(), PCB_IO::m_board, m_mapping, m_out, m_queryUserCallback, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), NETINFO_MAPPING::SetBoard(), and SEXPR_BOARD_FILE_VERSION.

Referenced by KI_TEST::DumpBoardToFile(), and ROUTER_TOOL::saveRouterDebugLog().

◆ SetOutputFormatter()

void PCB_IO_KICAD_SEXPR::SetOutputFormatter ( OUTPUTFORMATTER aFormatter)
inline

Definition at line 385 of file pcb_io_kicad_sexpr.h.

References m_out.

Referenced by FP_CACHE::Save().

◆ SetProgressReporter()

virtual void IO_BASE::SetProgressReporter ( PROGRESS_REPORTER aReporter)
inlinevirtualinherited

Set an optional progress reporter.

Reimplemented in SCH_IO_CADSTAR_ARCHIVE.

Definition at line 85 of file io_base.h.

Referenced by PCB_CONTROL::AppendBoard().

◆ SetQueryUserCallback() [1/2]

virtual void PCB_IO::SetQueryUserCallback ( std::function< bool(wxString aTitle, int aIcon, wxString aMessage, wxString aAction)>  aCallback)
inlinevirtualinherited

Registers a KIDIALOG callback for collecting info from the user.

Definition at line 97 of file pcb_io.h.

Referenced by PCB_CONTROL::AppendBoard().

◆ SetQueryUserCallback() [2/2]

void PCB_IO_KICAD_SEXPR::SetQueryUserCallback ( std::function< bool(wxString aTitle, int aIcon, wxString aMessage, wxString aOKButtonTitle)>  aCallback)
inlineoverride

Definition at line 313 of file pcb_io_kicad_sexpr.h.

References m_queryUserCallback.

◆ SetReporter()

virtual void IO_BASE::SetReporter ( REPORTER aReporter)
inlinevirtualinherited

Set an optional reporter for warnings/errors.

Reimplemented in SCH_IO_CADSTAR_ARCHIVE.

Definition at line 80 of file io_base.h.

◆ validateCache()

void PCB_IO_KICAD_SEXPR::validateCache ( const wxString &  aLibraryPath,
bool  checkModified = true 
)
protected

Friends And Related Function Documentation

◆ FP_CACHE

friend class FP_CACHE
friend

Definition at line 456 of file pcb_io_kicad_sexpr.h.

Referenced by CreateLibrary(), and validateCache().

Member Data Documentation

◆ m_board

◆ m_cache

FP_CACHE* PCB_IO_KICAD_SEXPR::m_cache
protected

◆ m_ctl

int PCB_IO_KICAD_SEXPR::m_ctl
protected

Definition at line 468 of file pcb_io_kicad_sexpr.h.

Referenced by FootprintSave(), and format().

◆ m_error

wxString PCB_IO_KICAD_SEXPR::m_error
protected

for throwing exceptions

Definition at line 459 of file pcb_io_kicad_sexpr.h.

◆ m_filename

wxString PCB_IO_KICAD_SEXPR::m_filename
protected

for saves only, name is in m_reader for loads

Definition at line 464 of file pcb_io_kicad_sexpr.h.

◆ m_mapping

NETINFO_MAPPING* PCB_IO_KICAD_SEXPR::m_mapping
protected

mapping for net codes, so only not empty net codes are stored with consecutive integers as net codes

Definition at line 469 of file pcb_io_kicad_sexpr.h.

Referenced by format(), formatNetInformation(), CLIPBOARD_IO::SaveBoard(), SaveBoard(), CLIPBOARD_IO::SaveSelection(), and ~PCB_IO_KICAD_SEXPR().

◆ m_name

wxString IO_BASE::m_name
protectedinherited

Name of the IO loader.

Definition at line 215 of file io_base.h.

◆ m_out

◆ m_progressReporter

◆ m_props

◆ m_queryUserCallback

std::function<bool( wxString aTitle, int aIcon, wxString aMsg, wxString aAction )> PCB_IO_KICAD_SEXPR::m_queryUserCallback
protected

Definition at line 472 of file pcb_io_kicad_sexpr.h.

Referenced by CanReadBoard(), DoLoad(), Parse(), SaveBoard(), and SetQueryUserCallback().

◆ m_reader

LINE_READER* PCB_IO_KICAD_SEXPR::m_reader
protected

no ownership

Definition at line 463 of file pcb_io_kicad_sexpr.h.

Referenced by init().

◆ m_reporter

REPORTER* IO_BASE::m_reporter
protectedinherited

Reporter to log errors/warnings to, may be nullptr.

Definition at line 218 of file io_base.h.

Referenced by SCH_IO_ALTIUM::AddLibTextBox(), SCH_IO_CADSTAR_ARCHIVE::ensureLoadedLibrary(), PCB_IO_ALTIUM_DESIGNER::FootprintLoad(), PCB_IO_ALTIUM_CIRCUIT_STUDIO::LoadBoard(), PCB_IO_ALTIUM_CIRCUIT_MAKER::LoadBoard(), PCB_IO_ALTIUM_DESIGNER::LoadBoard(), PCB_IO_SOLIDWORKS::LoadBoard(), SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile(), SCH_IO_LTSPICE::LoadSchematicFile(), SCH_IO_ALTIUM::ParseAltiumSch(), SCH_IO_ALTIUM::ParseArc(), SCH_IO_ALTIUM::ParseBezier(), SCH_IO_ALTIUM::ParseCircle(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParseDesignator(), SCH_IO_ALTIUM::ParseEllipse(), SCH_IO_ALTIUM::ParseEllipticalArc(), SCH_IO_ALTIUM::ParseFileName(), SCH_IO_ALTIUM::ParseHarnessConnector(), SCH_IO_ALTIUM::ParseHarnessEntry(), SCH_IO_ALTIUM::ParseHarnessPort(), SCH_IO_ALTIUM::ParseHarnessType(), SCH_IO_ALTIUM::ParseImage(), SCH_IO_ALTIUM::ParseImplementation(), SCH_IO_ALTIUM::ParseLabel(), SCH_IO_ALTIUM::ParseLibFile(), SCH_IO_ALTIUM::ParseLine(), SCH_IO_ALTIUM::ParsePieChart(), SCH_IO_ALTIUM::ParsePin(), SCH_IO_ALTIUM::ParsePolygon(), SCH_IO_ALTIUM::ParsePolyline(), SCH_IO_ALTIUM::ParsePort(), SCH_IO_ALTIUM::ParsePowerPort(), SCH_IO_ALTIUM::ParseRecord(), SCH_IO_ALTIUM::ParseRectangle(), SCH_IO_ALTIUM::ParseRoundRectangle(), SCH_IO_ALTIUM::ParseSheetEntry(), SCH_IO_ALTIUM::ParseSheetName(), SCH_IO_ALTIUM::ParseSignalHarness(), SCH_IO_ALTIUM::ParseStorage(), PCB_IO_ALTIUM_DESIGNER::PCB_IO_ALTIUM_DESIGNER(), PCB_IO_SOLIDWORKS::PCB_IO_SOLIDWORKS(), IO_BASE::Report(), SCH_IO_ALTIUM::SCH_IO_ALTIUM(), SCH_IO_CADSTAR_ARCHIVE::SCH_IO_CADSTAR_ARCHIVE(), SCH_IO_EAGLE::SCH_IO_EAGLE(), SCH_IO_EASYEDA::SCH_IO_EASYEDA(), SCH_IO_EASYEDAPRO::SCH_IO_EASYEDAPRO(), SCH_IO_LTSPICE::SCH_IO_LTSPICE(), and SCH_IO_CADSTAR_ARCHIVE::SetReporter().

◆ m_sf

STRING_FORMATTER PCB_IO_KICAD_SEXPR::m_sf
protected

Definition at line 466 of file pcb_io_kicad_sexpr.h.

Referenced by GetStringOutput(), and PCB_IO_KICAD_SEXPR().


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