KiCad PCB EDA Suite
Loading...
Searching...
No Matches
altium_parser_pcb.cpp File Reference
#include <map>
#include <unordered_map>
#include <ki_exception.h>
#include <math/util.h>
#include <wx/log.h>
#include "altium_parser_pcb.h"
#include "io/altium/altium_binary_parser.h"
#include "io/altium/altium_props_utils.h"

Go to the source code of this file.

Functions

ALTIUM_LAYER altium_layer_from_name (const wxString &aName)
 
void altium_parse_polygons (std::map< wxString, wxString > &aProps, std::vector< ALTIUM_VERTICE > &aVertices)
 
static ALTIUM_MODE ReadAltiumModeFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey)
 
static ALTIUM_RECORD ReadAltiumRecordFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey)
 
static AEXTENDED_PRIMITIVE_INFORMATION_TYPE ReadAltiumExtendedPrimitiveInformationTypeFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey)
 
static void ExpectSubrecordLengthAtLeast (const std::string &aStreamType, const std::string &aSubrecordName, size_t aExpectedLength, size_t aActualLength)
 Throw an IO_ERROR if the actual length is less than the expected length.
 

Function Documentation

◆ altium_layer_from_name()

◆ altium_parse_polygons()

void altium_parse_polygons ( std::map< wxString, wxString > &  aProps,
std::vector< ALTIUM_VERTICE > &  aVertices 
)

◆ ExpectSubrecordLengthAtLeast()

static void ExpectSubrecordLengthAtLeast ( const std::string &  aStreamType,
const std::string &  aSubrecordName,
size_t  aExpectedLength,
size_t  aActualLength 
)
static

Throw an IO_ERROR if the actual length is less than the expected length.

Parameters
aStreamTypethe current stream type (e.g. 'Pads6')
aSubrecordNamethe current subrecord name (e.g. 'subrecord5')
aExpectedLengththe expected length needed to parse the stream
aActualLengththe actual length of the subrecord encountered

Definition at line 238 of file altium_parser_pcb.cpp.

References THROW_IO_ERROR.

Referenced by APAD6::APAD6().

◆ ReadAltiumExtendedPrimitiveInformationTypeFromProperties()

static AEXTENDED_PRIMITIVE_INFORMATION_TYPE ReadAltiumExtendedPrimitiveInformationTypeFromProperties ( const std::map< wxString, wxString > &  aProps,
wxString  aKey 
)
static

◆ ReadAltiumModeFromProperties()

static ALTIUM_MODE ReadAltiumModeFromProperties ( const std::map< wxString, wxString > &  aProps,
wxString  aKey 
)
static

◆ ReadAltiumRecordFromProperties()

static ALTIUM_RECORD ReadAltiumRecordFromProperties ( const std::map< wxString, wxString > &  aProps,
wxString  aKey 
)
static