KiCad PCB EDA Suite
|
Container that parses Eagle library file "urn" definitions. More...
#include <eagle_parser.h>
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_BASE * | io |
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.
|
inline |
Definition at line 434 of file eagle_parser.h.
EURN::EURN | ( | const wxString & | aUrn | ) |
|
inherited |
Definition at line 558 of file eagle_parser.cpp.
References IO_BASE::AdvanceProgressPhase(), and EAGLE_BASE::io.
Referenced by EAGLE_DOC::EAGLE_DOC(), EAPPROVED::EAPPROVED(), EATTR::EATTR(), EBUS::EBUS(), ECIRCLE::ECIRCLE(), ECLASS::ECLASS(), ECOMPATIBILITY::ECOMPATIBILITY(), ECONNECT::ECONNECT(), EDESCRIPTION::EDESCRIPTION(), EDEVICE::EDEVICE(), EDEVICE_SET::EDEVICE_SET(), EDIMENSION::EDIMENSION(), EDRAWING::EDRAWING(), EFILTER::EFILTER(), EFRAME::EFRAME(), EGATE::EGATE(), EGRID::EGRID(), EHOLE::EHOLE(), EINSTANCE::EINSTANCE(), EJUNCTION::EJUNCTION(), ELABEL::ELABEL(), ELAYER::ELAYER(), ELIBRARY::ELIBRARY(), EMODEL::EMODEL(), EMODULE::EMODULE(), EMODULEINST::EMODULEINST(), ENET::ENET(), ENOTE::ENOTE(), EPACKAGE::EPACKAGE(), EPACKAGE3D::EPACKAGE3D(), EPACKAGE3DINST::EPACKAGE3DINST(), EPACKAGEINSTANCE::EPACKAGEINSTANCE(), EPAD::EPAD(), EPART::EPART(), EPIN::EPIN(), EPINMAP::EPINMAP(), EPINMAPPING::EPINMAPPING(), EPINREF::EPINREF(), EPLAIN::EPLAIN(), EPOLYGON::EPOLYGON(), EPORT::EPORT(), EPORTREF::EPORTREF(), EPROBE::EPROBE(), ERECT::ERECT(), ESCHEMATIC::ESCHEMATIC(), ESCHEMATIC_GROUP::ESCHEMATIC_GROUP(), ESEGMENT::ESEGMENT(), ESETTING::ESETTING(), ESHEET::ESHEET(), ESMD::ESMD(), ESPICE::ESPICE(), ESPLINE::ESPLINE(), ESYMBOL::ESYMBOL(), ETECHNOLOGY::ETECHNOLOGY(), ETEXT::ETEXT(), EVARIANT::EVARIANT(), EVARIANTDEF::EVARIANTDEF(), EVERTEX::EVERTEX(), EVIA::EVIA(), and EWIRE::EWIRE().
bool EURN::IsValid | ( | ) | const |
Check if the string passed to the ctor was a valid Eagle urn.
true | if the urn string is valid. |
false | if 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().
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().
|
inherited |
Send a message to the IO_BASE REPORTER object if one exists.
aMsg | is 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().
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().
wxString EURN::assetType |
Must be "symbol", "footprint", "package", "component", or "library".
Definition at line 451 of file eagle_parser.h.
wxString EURN::assetVersion |
May be empty depending on the asset type.
Definition at line 453 of file eagle_parser.h.
Referenced by Parse().
wxString EURN::host |
Should always be "urn".
Definition at line 449 of file eagle_parser.h.
|
inherited |
Definition at line 405 of file eagle_parser.h.
Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().
wxString EURN::path |
Path to the asset type below.
Definition at line 450 of file eagle_parser.h.