KiCad PCB EDA Suite
EELEMENT Struct Reference

Eagle element element. More...

#include <eagle_parser.h>

Public Member Functions

 EELEMENT (wxXmlNode *aElement)
 

Public Attributes

string name
 
string library
 
string package
 
string value
 
double x
 
double y
 
opt_bool locked
 
opt_bool smashed
 
opt_erot rot
 

Detailed Description

Eagle element element.

Definition at line 643 of file eagle_parser.h.

Constructor & Destructor Documentation

EELEMENT::EELEMENT ( wxXmlNode *  aElement)

Definition at line 541 of file eagle_parser.cpp.

References library, locked, name, package, ReplaceIllegalFileNameChars(), rot, smashed, value, x, and y.

542 {
543  /*
544  <!ELEMENT element (attribute*, variant*)>
545  <!ATTLIST element
546  name %String; #REQUIRED
547  library %String; #REQUIRED
548  package %String; #REQUIRED
549  value %String; #REQUIRED
550  x %Coord; #REQUIRED
551  y %Coord; #REQUIRED
552  locked %Bool; "no"
553  smashed %Bool; "no"
554  rot %Rotation; "R0"
555  >
556  */
557 
558  // #REQUIRED
559  name = parseRequiredAttribute<string>( aElement, "name" );
560  library = parseRequiredAttribute<string>( aElement, "library" );
561  value = parseRequiredAttribute<string>( aElement, "value" );
562  package = parseRequiredAttribute<string>( aElement, "package" );
564 
565  x = parseRequiredAttribute<double>( aElement, "x" );
566  y = parseRequiredAttribute<double>( aElement, "y" );
567 
568  // optional
569  locked = parseOptionalAttribute<bool>( aElement, "locked" );
570  smashed = parseOptionalAttribute<bool>( aElement, "smashed" );
571  rot = parseOptionalAttribute<EROT>( aElement, "rot" );
572 }
string package
Definition: eagle_parser.h:647
string name
Definition: eagle_parser.h:645
opt_erot rot
Definition: eagle_parser.h:653
bool ReplaceIllegalFileNameChars(std::string *aName, int aReplaceChar)
Function ReplaceIllegalFileNameChars checks aName for illegal file name characters.
Definition: string.cpp:483
opt_bool smashed
Definition: eagle_parser.h:652
double x
Definition: eagle_parser.h:649
double y
Definition: eagle_parser.h:650
string value
Definition: eagle_parser.h:648
string library
Definition: eagle_parser.h:646
opt_bool locked
Definition: eagle_parser.h:651

Member Data Documentation

string EELEMENT::library

Definition at line 646 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().

opt_bool EELEMENT::locked

Definition at line 651 of file eagle_parser.h.

Referenced by EELEMENT().

string EELEMENT::name

Definition at line 645 of file eagle_parser.h.

Referenced by EELEMENT(), ELAYER::ELAYER(), and EAGLE_PLUGIN::loadElements().

string EELEMENT::package

Definition at line 647 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().

opt_erot EELEMENT::rot

Definition at line 653 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::orientModuleAndText().

opt_bool EELEMENT::smashed

Definition at line 652 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().

string EELEMENT::value

Definition at line 648 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().

double EELEMENT::x

Definition at line 649 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().

double EELEMENT::y

Definition at line 650 of file eagle_parser.h.

Referenced by EELEMENT(), and EAGLE_PLUGIN::loadElements().


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