22#ifndef PLUGIN_COMMON_LAYER_MAPPING_H
23#define PLUGIN_COMMON_LAYER_MAPPING_H
43 :
Name( wxEmptyString ),
56using LAYER_MAPPING_HANDLER = std::function<std::map<wxString, PCB_LAYER_ID>(
const std::vector<INPUT_LAYER_DESC>& )>;
Plugin class for import plugins that support remappable layers.
virtual void RegisterCallback(LAYER_MAPPING_HANDLER aLayerMappingHandler)
Register a different handler to be called when mapping of input layers to KiCad layers occurs.
virtual ~LAYER_MAPPABLE_PLUGIN()=default
LAYER_MAPPING_HANDLER m_layer_mapping_handler
Callback to get layer mapping.
LSET is a set of PCB_LAYER_IDs.
PCB_LAYER_ID
A quick note on layer IDs:
std::function< std::map< wxString, PCB_LAYER_ID >(const std::vector< INPUT_LAYER_DESC > &)> LAYER_MAPPING_HANDLER
Pointer to a function that takes a map of source and KiCad layers and returns a re-mapped version.