KiCad PCB EDA Suite
ASCH_SHEET Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

std::vector< ASCH_SHEET_FONTfonts
 
ASCH_SHEET_SIZE sheetSize
 
ASCH_SHEET_WORKSPACEORIENTATION sheetOrientation
 

Detailed Description

Definition at line 620 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET()

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

Definition at line 643 of file altium_parser_sch.cpp.

644 {
645  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::SHEET );
646 
647  int fontidcount = ALTIUM_PARSER::PropertiesReadInt( aProperties, "FONTIDCOUNT", 0 );
648  for( int i = 1; i <= fontidcount; i++ )
649  {
650  fonts.emplace_back( aProperties, i );
651  }
652 
653  sheetSize = PropertiesReadEnum<ASCH_SHEET_SIZE>(
654  aProperties, "SHEETSTYLE", 0, 17, ASCH_SHEET_SIZE::A4 );
655  sheetOrientation = PropertiesReadEnum<ASCH_SHEET_WORKSPACEORIENTATION>(
656  aProperties, "WORKSPACEORIENTATION", 0, 1, ASCH_SHEET_WORKSPACEORIENTATION::LANDSCAPE );
657 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
ASCH_SHEET_SIZE sheetSize
std::vector< ASCH_SHEET_FONT > fonts
ASCH_SHEET_WORKSPACEORIENTATION sheetOrientation

References A4, fonts, LANDSCAPE, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadRecord(), SHEET, sheetOrientation, and sheetSize.

Member Data Documentation

◆ fonts

std::vector<ASCH_SHEET_FONT> ASCH_SHEET::fonts

Definition at line 622 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().

◆ sheetOrientation

ASCH_SHEET_WORKSPACEORIENTATION ASCH_SHEET::sheetOrientation

Definition at line 625 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().

◆ sheetSize

ASCH_SHEET_SIZE ASCH_SHEET::sheetSize

Definition at line 624 of file altium_parser_sch.h.

Referenced by ASCH_SHEET().


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