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

Parse an Eagle "attribute" XML element. More...

#include <eagle_parser.h>

Inheritance diagram for EATTR:
EAGLE_BASE

Public Types

enum  { Off , VALUE , NAME , BOTH }
 

Public Member Functions

 EATTR (wxXmlNode *aTree, IO_BASE *aIo=nullptr)
 
 EATTR ()
 
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 name
 
std::optional< wxString > value
 
std::optional< ECOORDx
 
std::optional< ECOORDy
 
std::optional< ECOORDsize
 
std::optional< int > layer
 
std::optional< wxString > font
 
std::optional< double > ratio
 
std::optional< EROTrot
 
std::optional< bool > constant
 
std::optional< int > display
 
std::optional< int > align
 
IO_BASEio
 

Detailed Description

Parse an Eagle "attribute" XML element.

Note
An attribute element is different than an XML element attribute. The attribute element is a full XML node in and of itself, and has attributes of its own. Blame Eagle.

Definition at line 656 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Off 
VALUE 
NAME 
BOTH 

Definition at line 688 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EATTR() [1/2]

◆ EATTR() [2/2]

EATTR::EATTR ( )
inline

Definition at line 702 of file eagle_parser.h.

Member Function Documentation

◆ AdvanceProgressPhase()

◆ 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 567 of file eagle_parser.cpp.

References io.

Member Data Documentation

◆ align

std::optional<int> EATTR::align

Definition at line 697 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().

◆ constant

std::optional<bool> EATTR::constant

Definition at line 695 of file eagle_parser.h.

◆ display

std::optional<int> EATTR::display

Definition at line 696 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::loadElements().

◆ font

std::optional<wxString> EATTR::font

Definition at line 684 of file eagle_parser.h.

◆ io

IO_BASE* EAGLE_BASE::io
inherited

Definition at line 225 of file eagle_parser.h.

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

◆ layer

std::optional<int> EATTR::layer

Definition at line 683 of file eagle_parser.h.

Referenced by EATTR().

◆ name

wxString EATTR::name

Definition at line 678 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::loadElements().

◆ ratio

std::optional<double> EATTR::ratio

Definition at line 685 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().

◆ rot

std::optional<EROT> EATTR::rot

Definition at line 686 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().

◆ size

std::optional<ECOORD> EATTR::size

Definition at line 682 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().

◆ value

std::optional<wxString> EATTR::value

Definition at line 679 of file eagle_parser.h.

Referenced by EATTR(), PCB_IO_EAGLE::loadElements(), and PCB_IO_EAGLE::orientFPText().

◆ x

std::optional<ECOORD> EATTR::x

Definition at line 680 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().

◆ y

std::optional<ECOORD> EATTR::y

Definition at line 681 of file eagle_parser.h.

Referenced by EATTR(), and PCB_IO_EAGLE::orientFPText().


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