KiCad PCB EDA Suite
LAYER_REMAPPABLE_PLUGIN Class Reference

Plugin class for import plugins that support remappable layers. More...

#include <plugin_common_layer_mapping.h>

Inheritance diagram for LAYER_REMAPPABLE_PLUGIN:
CADSTAR_PCB_ARCHIVE_PLUGIN EAGLE_PLUGIN

Public Member Functions

virtual void RegisterLayerMappingCallback (LAYER_MAPPING_HANDLER aLayerMappingHandler)
 Register a different handler to be called when mapping of input layers to KiCad layers occurs. More...
 

Protected Attributes

LAYER_MAPPING_HANDLER m_layer_mapping_handler
 Callback to get layer mapping. More...
 

Detailed Description

Plugin class for import plugins that support remappable layers.

Definition at line 60 of file plugin_common_layer_mapping.h.

Member Function Documentation

◆ RegisterLayerMappingCallback()

virtual void LAYER_REMAPPABLE_PLUGIN::RegisterLayerMappingCallback ( LAYER_MAPPING_HANDLER  aLayerMappingHandler)
inlinevirtual

Register a different handler to be called when mapping of input layers to KiCad layers occurs.

The function is marked as virtual, so the plugins can implement extra logic (e.g., enable warnings or checks)

Parameters
aLayerMappingHandler

Reimplemented in CADSTAR_PCB_ARCHIVE_PLUGIN.

Definition at line 72 of file plugin_common_layer_mapping.h.

73  {
74  m_layer_mapping_handler = aLayerMappingHandler;
75  }
LAYER_MAPPING_HANDLER m_layer_mapping_handler
Callback to get layer mapping.

References m_layer_mapping_handler.

Referenced by CADSTAR_PCB_ARCHIVE_PLUGIN::CADSTAR_PCB_ARCHIVE_PLUGIN(), EAGLE_PLUGIN::EAGLE_PLUGIN(), PCB_EDIT_FRAME::OpenProjectFiles(), and CADSTAR_PCB_ARCHIVE_PLUGIN::RegisterLayerMappingCallback().

Member Data Documentation

◆ m_layer_mapping_handler

LAYER_MAPPING_HANDLER LAYER_REMAPPABLE_PLUGIN::m_layer_mapping_handler
protected

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