|
KiCad PCB EDA Suite
|
#include <pads_parser.h>
Public Member Functions | |
| PARSER () | |
| ~PARSER () | |
| void | Parse (const wxString &aFileName) |
| const PARAMETERS & | GetParameters () const |
| const std::vector< PART > & | GetParts () const |
| const std::vector< NET > & | GetNets () const |
| const std::vector< ROUTE > & | GetRoutes () const |
| const std::vector< TEXT > & | GetTexts () const |
| const std::vector< LINE > & | GetLines () const |
| const std::vector< POLYLINE > & | GetBoardOutlines () const |
| const std::vector< POUR > & | GetPours () const |
| const std::map< std::string, VIA_DEF > & | GetViaDefs () const |
| const std::map< std::string, PART_DECAL > & | GetPartDecals () const |
| const std::map< std::string, PART_TYPE > & | GetPartTypes () const |
| const std::map< std::string, std::map< std::string, std::string > > & | GetPartInstanceAttrs () const |
| const std::map< std::string, REUSE_BLOCK > & | GetReuseBlocks () const |
| const std::vector< CLUSTER > & | GetClusters () const |
| const std::vector< TEST_POINT > & | GetTestPoints () const |
| const std::vector< DIMENSION > & | GetDimensions () const |
| const DESIGN_RULES & | GetDesignRules () const |
| const std::vector< NET_CLASS_DEF > & | GetNetClasses () const |
| const std::vector< DIFF_PAIR_DEF > & | GetDiffPairs () const |
| const std::vector< KEEPOUT > & | GetKeepouts () const |
| const std::vector< JUMPER_DEF > & | GetJumperDefs () const |
| const std::vector< COPPER_SHAPE > & | GetCopperShapes () const |
| const std::vector< GRAPHIC_LINE > & | GetGraphicLines () const |
| const FILE_HEADER & | GetFileHeader () const |
| bool | IsBasicUnits () const |
| std::vector< LAYER_INFO > | GetLayerInfos () const |
| Get layer information for layer mapping dialog. | |
Private Member Functions | |
| void | parseLine (const std::string &aLine) |
| void | parseSectionPCB (std::ifstream &aStream) |
| void | parseSectionPARTS (std::ifstream &aStream) |
| void | parseSectionNETS (std::ifstream &aStream) |
| void | parseSectionROUTES (std::ifstream &aStream) |
| void | parseSectionTEXT (std::ifstream &aStream) |
| void | parseSectionBOARD (std::ifstream &aStream) |
| void | parseSectionLINES (std::ifstream &aStream) |
| void | parseSectionVIA (std::ifstream &aStream) |
| void | parseSectionPOUR (std::ifstream &aStream) |
| void | parseSectionPARTDECAL (std::ifstream &aStream) |
| void | parseSectionPARTTYPE (std::ifstream &aStream) |
| void | parseSectionREUSE (std::ifstream &aStream) |
| void | parseSectionCLUSTER (std::ifstream &aStream) |
| void | parseSectionJUMPER (std::ifstream &aStream) |
| void | parseSectionTESTPOINT (std::ifstream &aStream) |
| void | parseSectionNETCLASS (std::ifstream &aStream) |
| void | parseSectionDIFFPAIR (std::ifstream &aStream) |
| void | parseSectionLAYERDEFS (std::ifstream &aStream) |
| void | parseSectionMISC (std::ifstream &aStream) |
| void | clampDesignRuleSentinels () |
| bool | readLine (std::ifstream &aStream, std::string &aLine) |
| void | pushBackLine (const std::string &aLine) |
| int | parseMajorVersion () const |
| Parse the major version number from the file header version string. | |
Private Attributes | |
| PARAMETERS | m_parameters |
| std::vector< PART > | m_parts |
| std::vector< NET > | m_nets |
| std::vector< ROUTE > | m_routes |
| std::vector< TEXT > | m_texts |
| std::vector< LINE > | m_lines |
| std::vector< POLYLINE > | m_board_outlines |
| std::vector< POUR > | m_pours |
| std::map< std::string, VIA_DEF > | m_via_defs |
| std::map< std::string, PART_DECAL > | m_decals |
| std::map< std::string, PART_TYPE > | m_part_types |
| Per-instance attribute overrides from PART <name> {...} blocks in PARTTYPE section. | |
| std::map< std::string, std::map< std::string, std::string > > | m_part_instance_attrs |
| std::map< std::string, REUSE_BLOCK > | m_reuse_blocks |
| std::vector< CLUSTER > | m_clusters |
| std::vector< TEST_POINT > | m_test_points |
| std::vector< DIMENSION > | m_dimensions |
| DESIGN_RULES | m_design_rules |
| std::vector< NET_CLASS_DEF > | m_net_classes |
| std::vector< DIFF_PAIR_DEF > | m_diff_pairs |
| std::vector< KEEPOUT > | m_keepouts |
| std::vector< JUMPER_DEF > | m_jumper_defs |
| Jumper definitions from JUMPER section. | |
| std::vector< COPPER_SHAPE > | m_copper_shapes |
| Copper shapes from LINES section. | |
| std::vector< GRAPHIC_LINE > | m_graphic_lines |
| 2D graphic lines from LINES section | |
| std::map< int, LAYER_INFO > | m_layer_defs |
| Parsed layer definitions by layer number. | |
| FILE_HEADER | m_file_header |
| Parsed file header info. | |
| bool | m_is_basic_units = false |
| bool | m_has_font_lines = true |
| True if text/label entries include a font line. | |
| std::string | m_current_section |
| std::optional< std::string > | m_pushed_line |
Definition at line 710 of file pads_parser.h.
| PADS_IO::PARSER::PARSER | ( | ) |
Definition at line 97 of file pads_parser.cpp.
| PADS_IO::PARSER::~PARSER | ( | ) |
Definition at line 101 of file pads_parser.cpp.
|
private |
Definition at line 4905 of file pads_parser.cpp.
References PADS_IO::DESIGN_RULES::copper_edge_clearance, PADS_IO::DESIGN_RULES::default_clearance, and m_design_rules.
Referenced by parseSectionMISC().
|
inline |
Definition at line 724 of file pads_parser.h.
References m_board_outlines.
|
inline |
Definition at line 734 of file pads_parser.h.
References m_clusters.
|
inline |
Definition at line 742 of file pads_parser.h.
References m_copper_shapes.
|
inline |
Definition at line 737 of file pads_parser.h.
References m_design_rules.
|
inline |
Definition at line 739 of file pads_parser.h.
References m_diff_pairs.
|
inline |
Definition at line 736 of file pads_parser.h.
References m_dimensions.
|
inline |
Definition at line 744 of file pads_parser.h.
References m_file_header.
|
inline |
Definition at line 743 of file pads_parser.h.
References m_graphic_lines.
|
inline |
Definition at line 741 of file pads_parser.h.
References m_jumper_defs.
|
inline |
Definition at line 740 of file pads_parser.h.
References m_keepouts.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| std::vector< LAYER_INFO > PADS_IO::PARSER::GetLayerInfos | ( | ) | const |
Get layer information for layer mapping dialog.
This generates layer info based on the parsed file header information. Call after Parse() to get accurate layer information.
Definition at line 4917 of file pads_parser.cpp.
References PADS_IO::ASSEMBLY, info, m_layer_defs, m_parameters, PADS_IO::PASTE_MASK, PADS_IO::ROUTING, PADS_IO::SILK_SCREEN, and PADS_IO::SOLDER_MASK.
|
inline |
Definition at line 723 of file pads_parser.h.
References m_lines.
|
inline |
Definition at line 738 of file pads_parser.h.
References m_net_classes.
|
inline |
Definition at line 720 of file pads_parser.h.
References m_nets.
|
inline |
Definition at line 718 of file pads_parser.h.
References m_parameters.
|
inline |
Definition at line 727 of file pads_parser.h.
References m_decals.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 729 of file pads_parser.h.
References m_part_instance_attrs.
|
inline |
Definition at line 719 of file pads_parser.h.
References m_parts.
|
inline |
Definition at line 728 of file pads_parser.h.
References m_part_types.
|
inline |
Definition at line 725 of file pads_parser.h.
References m_pours.
|
inline |
Definition at line 733 of file pads_parser.h.
References m_reuse_blocks.
|
inline |
Definition at line 721 of file pads_parser.h.
References m_routes.
|
inline |
Definition at line 735 of file pads_parser.h.
References m_test_points.
|
inline |
Definition at line 722 of file pads_parser.h.
References m_texts.
|
inline |
Definition at line 726 of file pads_parser.h.
References m_via_defs.
|
inline |
Definition at line 745 of file pads_parser.h.
References m_is_basic_units.
| void PADS_IO::PARSER::Parse | ( | const wxString & | aFileName | ) |
Definition at line 105 of file pads_parser.cpp.
References header, PADS_IO::INCHES, PADS_IO::LIB_LINE, PADS_IO::LIB_PART_TYPE, PADS_IO::LIB_PCB_DECAL, PADS_IO::LIB_SCH_DECAL, m_file_header, m_has_font_lines, m_is_basic_units, m_parameters, PADS_IO::METRIC, PADS_IO::MILS, parseMajorVersion(), parseSectionBOARD(), parseSectionCLUSTER(), parseSectionDIFFPAIR(), parseSectionJUMPER(), parseSectionLAYERDEFS(), parseSectionLINES(), parseSectionMISC(), parseSectionNETCLASS(), parseSectionNETS(), parseSectionPARTDECAL(), parseSectionPARTS(), parseSectionPARTTYPE(), parseSectionPCB(), parseSectionPOUR(), parseSectionREUSE(), parseSectionROUTES(), parseSectionTESTPOINT(), parseSectionTEXT(), parseSectionVIA(), PADS_IO::PCB, and readLine().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_PADS::LoadBoard().
|
private |
|
private |
Parse the major version number from the file header version string.
PADS version strings take the form "Vn.n" where n is a major version. The sequence is V3..V5, then V2003..V2007, V9, V9.4, V9.5, V10, etc. Returns 0 if parsing fails.
Definition at line 357 of file pads_parser.cpp.
References m_file_header.
Referenced by Parse().
|
private |
Definition at line 2572 of file pads_parser.cpp.
References PADS_IO::POLYLINE::closed, PADS_IO::ARC::cx, PADS_IO::POLYLINE::layer, m_board_outlines, M_PI, name, PADS_IO::POLYLINE::points, pushBackLine(), radius, readLine(), and PADS_IO::POLYLINE::width.
Referenced by Parse().
|
private |
Definition at line 4040 of file pads_parser.cpp.
References PADS_IO::CLUSTER::id, m_clusters, name, PADS_IO::CLUSTER::name, PADS_IO::CLUSTER::net_names, PADS_COMMON::ParseInt(), pushBackLine(), readLine(), and PADS_IO::CLUSTER::segment_refs.
Referenced by Parse().
|
private |
Definition at line 4325 of file pads_parser.cpp.
References PADS_IO::DIFF_PAIR_DEF::gap, m_diff_pairs, PADS_IO::DIFF_PAIR_DEF::name, PADS_IO::DIFF_PAIR_DEF::negative_net, PADS_IO::DIFF_PAIR_DEF::positive_net, pushBackLine(), readLine(), and PADS_IO::DIFF_PAIR_DEF::width.
Referenced by Parse().
|
private |
Definition at line 4113 of file pads_parser.cpp.
References PADS_IO::JUMPER_DEF::display_silk, PADS_IO::JUMPER_DEF::end_padstack, PADS_IO::ATTRIBUTE::font_info, PADS_IO::JUMPER_DEF::glued, PADS_IO::ATTRIBUTE::height, PADS_IO::ATTRIBUTE::hjust, PADS_IO::JUMPER_DEF::labels, PADS_IO::JUMPER_DEF::length_increment, PADS_IO::ATTRIBUTE::level, m_has_font_lines, m_jumper_defs, PADS_IO::JUMPER_DEF::max_length, PADS_IO::JUMPER_DEF::min_length, PADS_IO::ATTRIBUTE::mirrored, name, PADS_IO::JUMPER_DEF::name, PADS_IO::ATTRIBUTE::orientation, PADS_IO::JUMPER_DEF::padstack, pushBackLine(), readLine(), PADS_IO::ATTRIBUTE::right_reading, PADS_IO::JUMPER_DEF::via_enabled, PADS_IO::ATTRIBUTE::visible, PADS_IO::ATTRIBUTE::vjust, PADS_IO::ATTRIBUTE::width, PADS_IO::JUMPER_DEF::wirebond, PADS_IO::ATTRIBUTE::x, and PADS_IO::ATTRIBUTE::y.
Referenced by Parse().
|
private |
Definition at line 4400 of file pads_parser.cpp.
References PADS_IO::ASSEMBLY, PADS_IO::LAYER_INFO::copper_thickness, PADS_IO::LAYER_INFO::dielectric_constant, PADS_IO::DOCUMENTATION, PADS_IO::DRILL, PADS_IO::LAYER_INFO::is_copper, PADS_IO::LAYER_INFO::layer_thickness, PADS_IO::LAYER_INFO::layer_type, m_layer_defs, PADS_IO::MIXED, name, PADS_IO::LAYER_INFO::name, PADS_IO::LAYER_INFO::number, PADS_IO::PASTE_MASK, PADS_IO::PLANE, pushBackLine(), readLine(), PADS_IO::LAYER_INFO::required, PADS_IO::ROUTING, PADS_IO::SILK_SCREEN, PADS_IO::SOLDER_MASK, PADS_IO::UNASSIGNED, and PADS_IO::UNKNOWN.
Referenced by Parse(), and parseSectionMISC().
|
private |
Definition at line 2735 of file pads_parser.cpp.
References std::abs(), PADS_IO::ALL, PADS_IO::GRAPHIC_LINE::closed, PADS_IO::POLYLINE::closed, PADS_IO::DIMENSION::crossbar_pos, PADS_IO::ARC::cx, PADS_IO::COPPER_SHAPE::filled, PADS_IO::KEEPOUT::height_restriction, PADS_IO::COPPER_SHAPE::is_cutout, PADS_IO::DIMENSION::is_horizontal, PADS_IO::COPPER_SHAPE::layer, PADS_IO::DIMENSION::layer, PADS_IO::GRAPHIC_LINE::layer, PADS_IO::POLYLINE::layer, PADS_IO::KEEPOUT::layers, m_board_outlines, m_copper_shapes, m_dimensions, m_graphic_lines, m_has_font_lines, m_keepouts, M_PI, m_texts, PADS_IO::KEEPOUT::max_height, name, PADS_IO::COPPER_SHAPE::name, PADS_IO::DIMENSION::name, PADS_IO::GRAPHIC_LINE::name, PADS_IO::COPPER_SHAPE::net_name, PADS_IO::KEEPOUT::no_accordion, PADS_IO::KEEPOUT::no_components, PADS_IO::KEEPOUT::no_copper, PADS_IO::KEEPOUT::no_test_points, PADS_IO::KEEPOUT::no_traces, PADS_IO::KEEPOUT::no_vias, PADS_IO::COPPER_SHAPE::outline, PADS_IO::KEEPOUT::outline, PADS_IO::PLACEMENT, PADS_IO::DIMENSION::points, PADS_IO::GRAPHIC_LINE::points, PADS_IO::POLYLINE::points, pushBackLine(), radius, readLine(), PADS_IO::GRAPHIC_LINE::reuse_instance, PADS_IO::DIMENSION::rotation, PADS_IO::ROUTE, text, PADS_IO::DIMENSION::text, PADS_IO::DIMENSION::text_height, PADS_IO::DIMENSION::text_width, PADS_IO::KEEPOUT::type, PADS_IO::VIA, PADS_IO::COPPER_SHAPE::width, PADS_IO::GRAPHIC_LINE::width, PADS_IO::POLYLINE::width, PADS_IO::DIMENSION::x, PADS_IO::POINT::x, and PADS_IO::DIMENSION::y.
Referenced by Parse().
|
private |
Definition at line 4529 of file pads_parser.cpp.
References clampDesignRuleSentinels(), DESIGN_RULES, PADS_IO::DIFF_PAIR_DEF::gap, m_design_rules, m_diff_pairs, m_net_classes, m_part_instance_attrs, PADS_IO::DIFF_PAIR_DEF::name, PADS_IO::NET_CLASS_DEF::name, PADS_IO::DIFF_PAIR_DEF::negative_net, PADS_IO::NET_CLASS_DEF::net_names, parseSectionLAYERDEFS(), PADS_IO::DIFF_PAIR_DEF::positive_net, pushBackLine(), readLine(), and PADS_IO::DIFF_PAIR_DEF::width.
Referenced by Parse().
|
private |
Definition at line 4233 of file pads_parser.cpp.
References PADS_IO::NET_CLASS_DEF::clearance, PADS_IO::NET_CLASS_DEF::diff_pair_gap, PADS_IO::NET_CLASS_DEF::diff_pair_width, m_net_classes, PADS_IO::NET_CLASS_DEF::name, PADS_IO::NET_CLASS_DEF::net_names, pushBackLine(), readLine(), PADS_IO::NET_CLASS_DEF::track_width, PADS_IO::NET_CLASS_DEF::via_drill, and PADS_IO::NET_CLASS_DEF::via_size.
Referenced by Parse().
|
private |
Definition at line 714 of file pads_parser.cpp.
References end, m_nets, PADS_IO::NET::name, PADS_COMMON::ParseInt(), pin, PADS_IO::NET::pins, pushBackLine(), and readLine().
Referenced by Parse().
|
private |
Definition at line 1366 of file pads_parser.cpp.
References PADS_IO::PART_DECAL::attributes, PADS_IO::PAD_STACK_LAYER::chamfered, PADS_IO::PAD_STACK_LAYER::corner_radius, PADS_IO::ARC::cx, PADS_IO::PAD_STACK_LAYER::drill, PADS_IO::PAD_STACK_LAYER::finger_offset, PADS_IO::ATTRIBUTE::font_info, PADS_IO::ATTRIBUTE::height, PADS_IO::ATTRIBUTE::hjust, PADS_IO::PAD_STACK_LAYER::inner_diameter, PADS_IO::DECAL_ITEM::is_tag_close, PADS_IO::DECAL_ITEM::is_tag_open, PADS_IO::PART_DECAL::items, PADS_IO::DECAL_ITEM::layer, PADS_IO::PAD_STACK_LAYER::layer, PADS_IO::ATTRIBUTE::level, m_decals, m_has_font_lines, M_PI, PADS_IO::ATTRIBUTE::mirrored, name, PADS_IO::ATTRIBUTE::name, PADS_IO::PART_DECAL::name, PADS_IO::TERMINAL::name, PADS_IO::ATTRIBUTE::orientation, PADS_IO::PART_DECAL::pad_stacks, PADS_COMMON::ParseDouble(), PADS_IO::DECAL_ITEM::pinnum, PADS_IO::PAD_STACK_LAYER::plated, PADS_IO::DECAL_ITEM::points, pushBackLine(), radius, readLine(), PADS_IO::DECAL_ITEM::restrictions, PADS_IO::ATTRIBUTE::right_reading, PADS_IO::PAD_STACK_LAYER::rotation, PADS_IO::PAD_STACK_LAYER::shape, PADS_IO::PAD_STACK_LAYER::sizeA, PADS_IO::PAD_STACK_LAYER::sizeB, PADS_IO::PAD_STACK_LAYER::slot_length, PADS_IO::PAD_STACK_LAYER::slot_offset, PADS_IO::PAD_STACK_LAYER::slot_orientation, PADS_IO::PART_DECAL::terminals, PADS_IO::PAD_STACK_LAYER::thermal_outer_diameter, PADS_IO::PAD_STACK_LAYER::thermal_spoke_count, PADS_IO::PAD_STACK_LAYER::thermal_spoke_orientation, PADS_IO::PAD_STACK_LAYER::thermal_spoke_width, PADS_IO::DECAL_ITEM::type, PADS_IO::PART_DECAL::units, PADS_IO::ATTRIBUTE::visible, PADS_IO::ATTRIBUTE::vjust, PADS_IO::ATTRIBUTE::width, PADS_IO::DECAL_ITEM::width, PADS_IO::ATTRIBUTE::x, PADS_IO::TERMINAL::x, PADS_IO::ATTRIBUTE::y, and PADS_IO::TERMINAL::y.
Referenced by Parse().
|
private |
Definition at line 502 of file pads_parser.cpp.
References PADS_IO::PART::alt_decal_index, PADS_IO::PART::alternate_decals, PADS_IO::PART::attributes, PADS_IO::PART::bottom_layer, PADS_IO::PART::decal, PADS_IO::expandShortcutPattern(), PADS_IO::PART::explicit_decal, PADS_IO::ATTRIBUTE::font_info, PADS_IO::PART::glued, PADS_IO::ATTRIBUTE::height, PADS_IO::ATTRIBUTE::hjust, PADS_IO::ATTRIBUTE::level, PADS_IO::PART::location, m_has_font_lines, m_parts, PADS_IO::ATTRIBUTE::mirrored, PADS_IO::ATTRIBUTE::name, PADS_IO::PART::name, PADS_IO::ATTRIBUTE::orientation, PADS_COMMON::ParseInt(), PADS_IO::PART::part_type, pushBackLine(), readLine(), PADS_IO::PART::reuse_instance, PADS_IO::PART::reuse_part, PADS_IO::ATTRIBUTE::right_reading, PADS_IO::PART::rotation, PADS_IO::ATTRIBUTE::visible, PADS_IO::ATTRIBUTE::vjust, PADS_IO::ATTRIBUTE::width, PADS_IO::ATTRIBUTE::x, PADS_IO::POINT::x, PADS_IO::ATTRIBUTE::y, and PADS_IO::POINT::y.
Referenced by Parse().
|
private |
Definition at line 3692 of file pads_parser.cpp.
References PADS_IO::PART_TYPE::attributes, PADS_IO::BIDIRECTIONAL, PADS_IO::PART_TYPE::decal_name, PADS_IO::GATE_PIN::elec_type, empty(), end, PADS_IO::GATE_PIN::func_name, PADS_IO::GATE_DEF::gate_swap_type, PADS_IO::PART_TYPE::gates, PADS_IO::GROUND, PADS_IO::LOAD, m_part_types, name, PADS_IO::PART_TYPE::name, PADS_IO::OPEN_COLLECTOR, PADS_COMMON::ParseInt(), PADS_IO::GATE_PIN::pin_number, PADS_IO::SIGPIN::pin_number, PADS_IO::PART_TYPE::pin_pad_map, PADS_IO::GATE_DEF::pins, PADS_IO::POWER, pushBackLine(), readLine(), PADS_IO::SIGPIN::signal_name, PADS_IO::PART_TYPE::signal_pins, PADS_IO::SOURCE, PADS_IO::GATE_PIN::swap_type, PADS_IO::TERMINATOR, PADS_IO::TRISTATE, PADS_IO::UNDEFINED, and PADS_IO::SIGPIN::width.
Referenced by Parse().
|
private |
Definition at line 381 of file pads_parser.cpp.
References PADS_IO::INCHES, m_design_rules, m_parameters, PADS_IO::METRIC, PADS_IO::MILS, pushBackLine(), and readLine().
Referenced by Parse().
|
private |
Definition at line 1177 of file pads_parser.cpp.
References PADS_IO::ARC::cx, PADS_IO::POUR::hatch_grid, PADS_IO::POUR::hatch_width, PADS_IO::HATCHED, PADS_IO::POUR::is_cutout, PADS_IO::POUR::layer, m_pours, name, PADS_IO::POUR::name, PADS_IO::POUR::net_name, PADS_IO::POUR::owner_pour, PADS_IO::PAD, PADS_IO::POUR::points, PADS_IO::POUR::priority, pushBackLine(), radius, readLine(), PADS_IO::POUR::style, PADS_IO::POUR::thermal_type, PADS_IO::VIA, PADS_IO::VOIDOUT, and PADS_IO::POUR::width.
Referenced by Parse().
|
private |
Definition at line 3903 of file pads_parser.cpp.
References PADS_IO::REUSE_INSTANCE::glued, PADS_IO::REUSE_INSTANCE::instance_name, PADS_IO::REUSE_BLOCK::instances, PADS_IO::REUSE_INSTANCE::location, m_reuse_blocks, PADS_IO::REUSE_NET::merge, PADS_IO::REUSE_BLOCK::name, PADS_IO::REUSE_NET::name, PADS_IO::REUSE_BLOCK::net_naming, PADS_IO::REUSE_INSTANCE::net_naming, PADS_IO::REUSE_BLOCK::nets, PADS_IO::REUSE_BLOCK::part_names, PADS_IO::REUSE_BLOCK::part_naming, PADS_IO::REUSE_INSTANCE::part_naming, pushBackLine(), readLine(), PADS_IO::REUSE_INSTANCE::rotation, PADS_IO::REUSE_BLOCK::timestamp, PADS_IO::POINT::x, and PADS_IO::POINT::y.
Referenced by Parse().
|
private |
Definition at line 1852 of file pads_parser.cpp.
References std::abs(), PADS_IO::ARC_POINT::arc, PADS_IO::ARC::cx, PADS_IO::ARC::cy, PADS_IO::ARC::delta_angle, PADS_IO::TEARDROP::has_net_teardrop, PADS_IO::TEARDROP::has_pad_teardrop, PADS_IO::ARC_POINT::is_arc, PADS_IO::JUMPER_MARKER::is_start, PADS_IO::ROUTE::jumpers, PADS_IO::TRACK::layer, PADS_IO::VIA::location, m_parameters, M_PI, m_routes, m_via_defs, PADS_IO::JUMPER_MARKER::name, PADS_IO::VIA::name, PADS_IO::TEARDROP::net_flags, PADS_IO::TEARDROP::net_length, PADS_IO::ROUTE::net_name, PADS_IO::TEARDROP::net_width, PADS_IO::TEARDROP::pad_flags, PADS_IO::TEARDROP::pad_length, PADS_IO::TEARDROP::pad_width, pin, PADS_IO::ROUTE::pins, PADS_IO::TRACK::points, pushBackLine(), PADS_IO::ARC::radius, readLine(), PADS_IO::ROUTE, PADS_IO::ARC::start_angle, PADS_IO::ROUTE::teardrops, PADS_IO::ROUTE::tracks, via, PADS_IO::ROUTE::vias, PADS_IO::TRACK::width, PADS_IO::ARC_POINT::x, PADS_IO::JUMPER_MARKER::x, PADS_IO::ARC_POINT::y, and PADS_IO::JUMPER_MARKER::y.
Referenced by Parse().
|
private |
Definition at line 4199 of file pads_parser.cpp.
References m_test_points, pushBackLine(), readLine(), and tp.
Referenced by Parse().
|
private |
Definition at line 2440 of file pads_parser.cpp.
References m_file_header, m_has_font_lines, m_texts, PADS_COMMON::ParseDouble(), PADS_COMMON::ParseInt(), pushBackLine(), readLine(), and text.
Referenced by Parse().
|
private |
Definition at line 944 of file pads_parser.cpp.
References PADS_IO::BLIND, PADS_IO::BURIED, PADS_IO::PAD_STACK_LAYER::chamfered, PADS_IO::PAD_STACK_LAYER::corner_radius, PADS_IO::VIA_DEF::drill, PADS_IO::VIA_DEF::drill_end, PADS_IO::VIA_DEF::drill_start, PADS_IO::VIA_DEF::end_layer, PADS_IO::PAD_STACK_LAYER::finger_offset, PADS_IO::VIA_DEF::has_mask_back, PADS_IO::VIA_DEF::has_mask_front, PADS_IO::PAD_STACK_LAYER::inner_diameter, PADS_IO::PAD_STACK_LAYER::layer, m_parameters, m_via_defs, PADS_IO::MICROVIA, name, PADS_IO::VIA_DEF::name, PADS_IO::PAD_STACK_LAYER::plated, pushBackLine(), readLine(), PADS_IO::PAD_STACK_LAYER::rotation, PADS_IO::PAD_STACK_LAYER::shape, PADS_IO::VIA_DEF::size, PADS_IO::PAD_STACK_LAYER::sizeA, PADS_IO::PAD_STACK_LAYER::sizeB, PADS_IO::VIA_DEF::stack, PADS_IO::VIA_DEF::start_layer, PADS_IO::PAD_STACK_LAYER::thermal_outer_diameter, PADS_IO::PAD_STACK_LAYER::thermal_spoke_count, PADS_IO::PAD_STACK_LAYER::thermal_spoke_orientation, PADS_IO::PAD_STACK_LAYER::thermal_spoke_width, PADS_IO::THROUGH, and PADS_IO::VIA_DEF::via_type.
Referenced by Parse().
|
private |
Definition at line 351 of file pads_parser.cpp.
References m_pushed_line.
Referenced by parseSectionBOARD(), parseSectionCLUSTER(), parseSectionDIFFPAIR(), parseSectionJUMPER(), parseSectionLAYERDEFS(), parseSectionLINES(), parseSectionMISC(), parseSectionNETCLASS(), parseSectionNETS(), parseSectionPARTDECAL(), parseSectionPARTS(), parseSectionPARTTYPE(), parseSectionPCB(), parseSectionPOUR(), parseSectionREUSE(), parseSectionROUTES(), parseSectionTESTPOINT(), parseSectionTEXT(), and parseSectionVIA().
|
private |
Definition at line 329 of file pads_parser.cpp.
References m_pushed_line.
Referenced by Parse(), parseSectionBOARD(), parseSectionCLUSTER(), parseSectionDIFFPAIR(), parseSectionJUMPER(), parseSectionLAYERDEFS(), parseSectionLINES(), parseSectionMISC(), parseSectionNETCLASS(), parseSectionNETS(), parseSectionPARTDECAL(), parseSectionPARTS(), parseSectionPARTTYPE(), parseSectionPCB(), parseSectionPOUR(), parseSectionREUSE(), parseSectionROUTES(), parseSectionTESTPOINT(), parseSectionTEXT(), and parseSectionVIA().
|
private |
Definition at line 797 of file pads_parser.h.
Referenced by GetBoardOutlines(), parseSectionBOARD(), and parseSectionLINES().
|
private |
Definition at line 806 of file pads_parser.h.
Referenced by GetClusters(), and parseSectionCLUSTER().
|
private |
Copper shapes from LINES section.
Definition at line 814 of file pads_parser.h.
Referenced by GetCopperShapes(), and parseSectionLINES().
|
private |
Definition at line 821 of file pads_parser.h.
|
private |
Definition at line 800 of file pads_parser.h.
Referenced by GetPartDecals(), and parseSectionPARTDECAL().
|
private |
Definition at line 809 of file pads_parser.h.
Referenced by clampDesignRuleSentinels(), GetDesignRules(), parseSectionMISC(), and parseSectionPCB().
|
private |
Definition at line 811 of file pads_parser.h.
Referenced by GetDiffPairs(), parseSectionDIFFPAIR(), and parseSectionMISC().
|
private |
Definition at line 808 of file pads_parser.h.
Referenced by GetDimensions(), and parseSectionLINES().
|
private |
Parsed file header info.
Definition at line 817 of file pads_parser.h.
Referenced by GetFileHeader(), Parse(), parseMajorVersion(), and parseSectionTEXT().
|
private |
2D graphic lines from LINES section
Definition at line 815 of file pads_parser.h.
Referenced by GetGraphicLines(), and parseSectionLINES().
|
private |
True if text/label entries include a font line.
Definition at line 819 of file pads_parser.h.
Referenced by Parse(), parseSectionJUMPER(), parseSectionLINES(), parseSectionPARTDECAL(), parseSectionPARTS(), and parseSectionTEXT().
|
private |
Definition at line 818 of file pads_parser.h.
Referenced by IsBasicUnits(), and Parse().
|
private |
Jumper definitions from JUMPER section.
Definition at line 813 of file pads_parser.h.
Referenced by GetJumperDefs(), and parseSectionJUMPER().
|
private |
Definition at line 812 of file pads_parser.h.
Referenced by GetKeepouts(), and parseSectionLINES().
|
private |
Parsed layer definitions by layer number.
Definition at line 816 of file pads_parser.h.
Referenced by GetLayerInfos(), and parseSectionLAYERDEFS().
|
private |
Definition at line 796 of file pads_parser.h.
Referenced by GetLines().
|
private |
Definition at line 810 of file pads_parser.h.
Referenced by GetNetClasses(), parseSectionMISC(), and parseSectionNETCLASS().
|
private |
Definition at line 793 of file pads_parser.h.
Referenced by GetNets(), and parseSectionNETS().
|
private |
Definition at line 791 of file pads_parser.h.
Referenced by GetLayerInfos(), GetParameters(), Parse(), parseSectionPCB(), parseSectionROUTES(), and parseSectionVIA().
|
private |
Definition at line 804 of file pads_parser.h.
Referenced by GetPartInstanceAttrs(), and parseSectionMISC().
|
private |
Per-instance attribute overrides from PART <name> {...} blocks in PARTTYPE section.
Definition at line 801 of file pads_parser.h.
Referenced by GetPartTypes(), and parseSectionPARTTYPE().
|
private |
Definition at line 792 of file pads_parser.h.
Referenced by GetParts(), and parseSectionPARTS().
|
private |
Definition at line 798 of file pads_parser.h.
Referenced by GetPours(), and parseSectionPOUR().
|
private |
Definition at line 822 of file pads_parser.h.
Referenced by pushBackLine(), and readLine().
|
private |
Definition at line 805 of file pads_parser.h.
Referenced by GetReuseBlocks(), and parseSectionREUSE().
|
private |
Definition at line 794 of file pads_parser.h.
Referenced by GetRoutes(), and parseSectionROUTES().
|
private |
Definition at line 807 of file pads_parser.h.
Referenced by GetTestPoints(), and parseSectionTESTPOINT().
|
private |
Definition at line 795 of file pads_parser.h.
Referenced by GetTexts(), parseSectionLINES(), and parseSectionTEXT().
|
private |
Definition at line 799 of file pads_parser.h.
Referenced by GetViaDefs(), parseSectionROUTES(), and parseSectionVIA().