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

Writes a schematic or symbol library in the KiCad 9.0 file format. More...

#include <sch_writer_v9.h>

Public Member Functions

 SCH_WRITER_V9 ()
 
void SaveSchematicFile (const wxString &aFileName, SCH_SHEET *aSheet, SCHEMATIC *aSchematic)
 
void SaveSymbolLibrary (const wxString &aFileName, const std::vector< LIB_SYMBOL * > &aSymbols)
 

Static Public Attributes

static constexpr int FORMAT_VERSION = 20250114
 
static constexpr int SYMBOL_LIB_VERSION = 20241209
 

Private Member Functions

void Format (SCH_SHEET *aSheet)
 
void saveSymbol (SCH_SYMBOL *aSymbol, const SCHEMATIC &aSchematic, const SCH_SHEET_LIST &aSheetList, bool aForClipboard, const SCH_SHEET_PATH *aRelativePath=nullptr)
 
void saveField (SCH_FIELD *aField)
 
void saveBitmap (const SCH_BITMAP &aBitmap)
 
void saveSheet (SCH_SHEET *aSheet, const SCH_SHEET_LIST &aSheetList)
 
void saveJunction (SCH_JUNCTION *aJunction)
 
void saveNoConnect (SCH_NO_CONNECT *aNoConnect)
 
void saveBusEntry (SCH_BUS_ENTRY_BASE *aBusEntry)
 
void saveShape (SCH_SHAPE *aShape)
 
void saveRuleArea (SCH_RULE_AREA *aRuleArea)
 
void saveLine (SCH_LINE *aLine)
 
void saveText (SCH_TEXT *aText)
 
void saveTextBox (SCH_TEXTBOX *aTextBox)
 
void saveTable (SCH_TABLE *aTable)
 
void saveBusAlias (std::shared_ptr< BUS_ALIAS > aAlias)
 
void saveInstances (const std::vector< SCH_SHEET_INSTANCE > &aInstances)
 

Private Attributes

SCHEMATIC * m_schematic
 
OUTPUTFORMATTER * m_out
 

Detailed Description

Writes a schematic or symbol library in the KiCad 9.0 file format.

Extracted from the 9.0.0 release, so it can only emit what that release can read back.

Definition at line 49 of file sch_writer_v9.h.

Constructor & Destructor Documentation

◆ SCH_WRITER_V9()

SCH_WRITER_V9::SCH_WRITER_V9 ( )
inline

Definition at line 55 of file sch_writer_v9.h.

References m_out, and m_schematic.

Member Function Documentation

◆ Format()

◆ saveBitmap()

◆ saveBusAlias()

void SCH_WRITER_V9::saveBusAlias ( std::shared_ptr< BUS_ALIAS > aAlias)
private

Definition at line 1636 of file sch_writer_v9.cpp.

References m_out, and TO_UTF8.

Referenced by Format().

◆ saveBusEntry()

◆ saveField()

◆ saveInstances()

void SCH_WRITER_V9::saveInstances ( const std::vector< SCH_SHEET_INSTANCE > & aInstances)
private

Definition at line 1654 of file sch_writer_v9.cpp.

References m_out, and path.

Referenced by Format().

◆ saveJunction()

◆ saveLine()

◆ saveNoConnect()

void SCH_WRITER_V9::saveNoConnect ( SCH_NO_CONNECT * aNoConnect)
private

◆ saveRuleArea()

void SCH_WRITER_V9::saveRuleArea ( SCH_RULE_AREA * aRuleArea)
private

Definition at line 1396 of file sch_writer_v9.cpp.

References m_out, and saveShape().

Referenced by Format().

◆ SaveSchematicFile()

void SCH_WRITER_V9::SaveSchematicFile ( const wxString & aFileName,
SCH_SHEET * aSheet,
SCHEMATIC * aSchematic )

◆ saveShape()

◆ saveSheet()

◆ saveSymbol()

void SCH_WRITER_V9::saveSymbol ( SCH_SYMBOL * aSymbol,
const SCHEMATIC & aSchematic,
const SCH_SHEET_LIST & aSheetList,
bool aForClipboard,
const SCH_SHEET_PATH * aRelativePath = nullptr )
private

◆ SaveSymbolLibrary()

void SCH_WRITER_V9::SaveSymbolLibrary ( const wxString & aFileName,
const std::vector< LIB_SYMBOL * > & aSymbols )

◆ saveTable()

◆ saveText()

◆ saveTextBox()

Member Data Documentation

◆ FORMAT_VERSION

int SCH_WRITER_V9::FORMAT_VERSION = 20250114
staticconstexpr

Definition at line 52 of file sch_writer_v9.h.

Referenced by Format(), saveBitmap(), and SaveSchematicForTarget().

◆ m_out

◆ m_schematic

SCHEMATIC* SCH_WRITER_V9::m_schematic
private

Definition at line 99 of file sch_writer_v9.h.

Referenced by Format(), SaveSchematicFile(), saveSheet(), saveSymbol(), and SCH_WRITER_V9().

◆ SYMBOL_LIB_VERSION

int SCH_WRITER_V9::SYMBOL_LIB_VERSION = 20241209
staticconstexpr

Definition at line 53 of file sch_writer_v9.h.

Referenced by SaveSymbolLibrary(), and SaveSymbolLibraryForTarget().


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