KiCad PCB EDA Suite
ANET6 Struct Reference

#include <altium_parser_pcb.h>

Public Member Functions

 ANET6 (ALTIUM_PARSER &aReader)
 

Public Attributes

wxString name
 

Detailed Description

Definition at line 434 of file altium_parser_pcb.h.

Constructor & Destructor Documentation

◆ ANET6()

ANET6::ANET6 ( ALTIUM_PARSER aReader)
explicit

Definition at line 355 of file altium_parser_pcb.cpp.

356 {
357  std::map<wxString, wxString> properties = aReader.ReadProperties();
358 
359  if( properties.empty() )
360  THROW_IO_ERROR( "Nets6 stream has no properties" );
361 
362  name = ALTIUM_PARSER::ReadString( properties, "NAME", "" );
363 
364  if( aReader.HasParsingError() )
365  THROW_IO_ERROR( "Nets6 stream was not parsed correctly" );
366 }
std::map< wxString, wxString > ReadProperties()
wxString name
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38
bool HasParsingError()

References ALTIUM_PARSER::HasParsingError(), name, ALTIUM_PARSER::ReadProperties(), ALTIUM_PARSER::ReadString(), and THROW_IO_ERROR.

Member Data Documentation

◆ name

wxString ANET6::name

Definition at line 436 of file altium_parser_pcb.h.

Referenced by ANET6(), and ALTIUM_PCB::ParseNets6Data().


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