KiCad PCB EDA Suite
ASCH_SHEET Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_SHEET (const std::map< wxString, wxString > &aProps)
 

Public Attributes

std::vector< ASCH_SHEET_FONTfonts
 
ASCH_SHEET_SIZE sheetSize
 
ASCH_SHEET_WORKSPACEORIENTATION sheetOrientation
 

Detailed Description

Definition at line 658 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET()

ASCH_SHEET::ASCH_SHEET ( const std::map< wxString, wxString > &  aProps)
explicit

Definition at line 631 of file altium_parser_sch.cpp.

632 {
633  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET );
634 
635  int fontidcount = ALTIUM_PARSER::ReadInt( aProps, "FONTIDCOUNT", 0 );
636 
637  for( int i = 1; i <= fontidcount; i++ )
638  fonts.emplace_back( aProps, i );
639 
640  sheetSize = ReadEnum<ASCH_SHEET_SIZE>( aProps, "SHEETSTYLE", 0, 17, ASCH_SHEET_SIZE::A4 );
641  sheetOrientation = ReadEnum<ASCH_SHEET_WORKSPACEORIENTATION>(
642  aProps, "WORKSPACEORIENTATION", 0, 1, ASCH_SHEET_WORKSPACEORIENTATION::LANDSCAPE );
643 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
ASCH_SHEET_SIZE sheetSize
std::vector< ASCH_SHEET_FONT > fonts
ASCH_SHEET_WORKSPACEORIENTATION sheetOrientation

References A4, fonts, LANDSCAPE, ALTIUM_PARSER::ReadInt(), ReadRecord(), SHEET, sheetOrientation, and sheetSize.

Member Data Documentation

◆ fonts

std::vector<ASCH_SHEET_FONT> ASCH_SHEET::fonts

Definition at line 660 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().

◆ sheetOrientation

ASCH_SHEET_WORKSPACEORIENTATION ASCH_SHEET::sheetOrientation

Definition at line 663 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().

◆ sheetSize

ASCH_SHEET_SIZE ASCH_SHEET::sheetSize

Definition at line 662 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().


The documentation for this struct was generated from the following files: