KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EURN Struct Reference

Container that parses Eagle library file "urn" definitions. More...

#include <eagle_parser.h>

Inheritance diagram for EURN:
EAGLE_BASE

Public Member Functions

 EURN ()
 
 EURN (const wxString &aUrn)
 Parse an Eagle "urn" string.
 
void Parse (const wxString &aUrn)
 
bool IsValid () const
 Check if the string passed to the ctor was a valid Eagle urn.
 
void Report (const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
 Send a message to the IO_BASE REPORTER object if one exists.
 
void AdvanceProgressPhase ()
 

Public Attributes

wxString host
 Should always be "urn".
 
wxString path
 Path to the asset type below.
 
wxString assetType
 Must be "symbol", "footprint", "package", "component", or "library".
 
wxString assetId
 The unique asset identifier for the asset type.
 
wxString assetVersion
 May be empty depending on the asset type.
 
IO_BASEio
 

Detailed Description

Container that parses Eagle library file "urn" definitions.

According to the eagle.dtd, the "urn" definition is as follows:

<!ENTITY % Urn "%String;">

Definition at line 432 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EURN() [1/2]

EURN::EURN ( )
inline

Definition at line 434 of file eagle_parser.h.

◆ EURN() [2/2]

EURN::EURN ( const wxString &  aUrn)

Parse an Eagle "urn" string.

Definition at line 293 of file eagle_parser.cpp.

References Parse().

Member Function Documentation

◆ AdvanceProgressPhase()

◆ IsValid()

bool EURN::IsValid ( ) const

Check if the string passed to the ctor was a valid Eagle urn.

Return values
trueif the urn string is valid.
falseif the urn string is not valid.

Definition at line 315 of file eagle_parser.cpp.

References assetId, assetType, host, and path.

Referenced by ELIBRARY::GetName().

◆ Parse()

void EURN::Parse ( const wxString &  aUrn)

Definition at line 299 of file eagle_parser.cpp.

References assetId, assetType, assetVersion, host, and path.

Referenced by EURN().

◆ Report()

void EAGLE_BASE::Report ( const wxString &  aMsg,
SEVERITY  aSeverity = RPT_SEVERITY_UNDEFINED 
)
inherited

Send a message to the IO_BASE REPORTER object if one exists.

Parameters
aMsgis the message to send to the REPORTER object.

Definition at line 549 of file eagle_parser.cpp.

References EAGLE_BASE::io, and IO_BASE::Report().

Member Data Documentation

◆ assetId

wxString EURN::assetId

The unique asset identifier for the asset type.

Definition at line 452 of file eagle_parser.h.

Referenced by ELIBRARY::GetName(), IsValid(), PCB_IO_EAGLE::loadElements(), and Parse().

◆ assetType

wxString EURN::assetType

Must be "symbol", "footprint", "package", "component", or "library".

Definition at line 451 of file eagle_parser.h.

Referenced by IsValid(), and Parse().

◆ assetVersion

wxString EURN::assetVersion

May be empty depending on the asset type.

Definition at line 453 of file eagle_parser.h.

Referenced by Parse().

◆ host

wxString EURN::host

Should always be "urn".

Definition at line 449 of file eagle_parser.h.

Referenced by IsValid(), and Parse().

◆ io

IO_BASE* EAGLE_BASE::io
inherited

Definition at line 405 of file eagle_parser.h.

Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().

◆ path

wxString EURN::path

Path to the asset type below.

Definition at line 450 of file eagle_parser.h.

Referenced by IsValid(), and Parse().


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