KiCad PCB EDA Suite
pcbnew/kicad_plugin.h File Reference
#include <io_mgr.h>
#include <string>
#include <layers_id_colors_and_visibility.h>

Go to the source code of this file.

Classes

class  PCB_IO
 Class PCB_IO is a PLUGIN derivation for saving and loading Pcbnew s-expression formatted files. More...
 

Macros

#define SEXPR_BOARD_FILE_VERSION   20171114
 Current s-expression file format version. 2 was the last legacy format version. More...
 
#define CTL_STD_LAYER_NAMES   (1 << 0)
 Use English Standard layer names. More...
 
#define CTL_OMIT_NETS   (1 << 1)
 Omit pads net names (useless in library) More...
 
#define CTL_OMIT_TSTAMPS   (1 << 2)
 Omit component time stamp (useless in library) More...
 
#define CTL_OMIT_INITIAL_COMMENTS   (1 << 3)
 omit MODULE initial comments More...
 
#define CTL_OMIT_PATH   (1 << 4)
 Omit component sheet time stamp (useless in library) More...
 
#define CTL_OMIT_AT   (1 << 5)
 Omit position and rotation. More...
 
#define CTL_FOR_CLIPBOARD   (CTL_STD_LAYER_NAMES|CTL_OMIT_NETS)
 Format output for the clipboard instead of footprint library or BOARD. More...
 
#define CTL_FOR_LIBRARY   (CTL_STD_LAYER_NAMES|CTL_OMIT_NETS|CTL_OMIT_TSTAMPS|CTL_OMIT_PATH|CTL_OMIT_AT)
 Format output for a footprint library instead of clipboard or BOARD. More...
 
#define CTL_FOR_BOARD   (CTL_OMIT_INITIAL_COMMENTS)
 The zero arg constructor when PCB_IO is used for PLUGIN::Load() and PLUGIN::Save()ing a BOARD file underneath IO_MGR. More...
 

Macro Definition Documentation

#define CTL_FOR_BOARD   (CTL_OMIT_INITIAL_COMMENTS)

The zero arg constructor when PCB_IO is used for PLUGIN::Load() and PLUGIN::Save()ing a BOARD file underneath IO_MGR.

Definition at line 70 of file pcbnew/kicad_plugin.h.

#define CTL_FOR_CLIPBOARD   (CTL_STD_LAYER_NAMES|CTL_OMIT_NETS)

Format output for the clipboard instead of footprint library or BOARD.

Definition at line 63 of file pcbnew/kicad_plugin.h.

Format output for a footprint library instead of clipboard or BOARD.

Definition at line 66 of file pcbnew/kicad_plugin.h.

Referenced by FOOTPRINT_EDIT_FRAME::Export_Module(), and PCB_IO::FootprintSave().

#define CTL_OMIT_AT   (1 << 5)

Omit position and rotation.

Definition at line 55 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::format().

#define CTL_OMIT_INITIAL_COMMENTS   (1 << 3)

omit MODULE initial comments

Definition at line 53 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::format().

#define CTL_OMIT_NETS   (1 << 1)

Omit pads net names (useless in library)

Definition at line 51 of file pcbnew/kicad_plugin.h.

Referenced by COMPONENT::Format(), and PCB_IO::format().

#define CTL_OMIT_PATH   (1 << 4)

Omit component sheet time stamp (useless in library)

Definition at line 54 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::format().

#define CTL_OMIT_TSTAMPS   (1 << 2)

Omit component time stamp (useless in library)

Definition at line 52 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::format().

#define CTL_STD_LAYER_NAMES   (1 << 0)

Use English Standard layer names.

Definition at line 50 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::formatLayer(), and PCB_IO::formatLayers().

#define SEXPR_BOARD_FILE_VERSION   20171114

Current s-expression file format version. 2 was the last legacy format version.

Definition at line 48 of file pcbnew/kicad_plugin.h.

Referenced by PCB_IO::init(), PCB_PARSER::parseHeader(), PCB_PARSER::parseMODULE_unchecked(), CLIPBOARD_IO::Save(), PCB_IO::Save(), and CLIPBOARD_IO::SaveSelection().