KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_allegro.cpp File Reference
#include "pcb_io_allegro.h"
#include <board.h>
#include <ki_exception.h>
#include <reporter.h>
#include <io/io_utils.h>
#include <kiplatform/io.h>
#include <convert/allegro_parser.h>
#include <allegro_builder.h>
#include <core/profile.h>
#include <stdexcept>

Go to the source code of this file.

Functions

static bool checkFileHeader (const wxString &aFileName)
 
static std::map< wxString, PCB_LAYER_ID > allegroDefaultLayerMappingCallback (const std::vector< INPUT_LAYER_DESC > &aInputLayerDescriptionVector)
 
static std::unique_ptr< ALLEGRO::BRD_DB > parseAllegroData (const uint8_t *aData, size_t aSize, PROGRESS_REPORTER *aProgressReporter)
 Parse a whole Allegro file into the intermediate database of blocks and strings.
 

Variables

static const wxChar *const traceAllegroPerf = wxT( "KICAD_ALLEGRO_PERF" )
 Pcbnew PLUGIN for Allegro brd format.
 

Function Documentation

◆ allegroDefaultLayerMappingCallback()

static std::map< wxString, PCB_LAYER_ID > allegroDefaultLayerMappingCallback ( const std::vector< INPUT_LAYER_DESC > & aInputLayerDescriptionVector)
static

Definition at line 101 of file pcb_io_allegro.cpp.

Referenced by PCB_IO_ALLEGRO::PCB_IO_ALLEGRO().

◆ checkFileHeader()

static bool checkFileHeader ( const wxString & aFileName)
static

Definition at line 44 of file pcb_io_allegro.cpp.

References IO_UTILS::fileHasBinaryHeader().

Referenced by PCB_IO_ALLEGRO::CanReadBoard().

◆ parseAllegroData()

static std::unique_ptr< ALLEGRO::BRD_DB > parseAllegroData ( const uint8_t * aData,
size_t aSize,
PROGRESS_REPORTER * aProgressReporter )
static

Parse a whole Allegro file into the intermediate database of blocks and strings.

The parsed database owns copies of everything it needs, so the source data can go away once this returns.

Definition at line 118 of file pcb_io_allegro.cpp.

References ALLEGRO::PARSER::EndAtUnknownBlock(), and ALLEGRO::PARSER::Parse().

Referenced by PCB_IO_ALLEGRO::LoadBoardFromData().

Variable Documentation

◆ traceAllegroPerf

const wxChar* const traceAllegroPerf = wxT( "KICAD_ALLEGRO_PERF" )
static

Pcbnew PLUGIN for Allegro brd format.

Definition at line 41 of file pcb_io_allegro.cpp.