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
opt_bool locked
opt_bool smashed
opt_erot rot

Detailed Description

Eagle element element.

Definition at line 785 of file eagle_parser.h.

Constructor & Destructor Documentation

EELEMENT::EELEMENT ( wxXmlNode *  aElement)

Definition at line 779 of file eagle_parser.cpp.

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

780 {
781  /*
782  <!ELEMENT element (attribute*, variant*)>
783  <!ATTLIST element
784  name %String; #REQUIRED
785  library %String; #REQUIRED
786  package %String; #REQUIRED
787  value %String; #REQUIRED
788  x %Coord; #REQUIRED
789  y %Coord; #REQUIRED
790  locked %Bool; "no"
791  smashed %Bool; "no"
792  rot %Rotation; "R0"
793  >
794  */
796  // #REQUIRED
797  name = parseRequiredAttribute<string>( aElement, "name" );
798  library = parseRequiredAttribute<string>( aElement, "library" );
799  value = parseRequiredAttribute<string>( aElement, "value" );
800  package = parseRequiredAttribute<string>( aElement, "package" );
803  x = parseRequiredAttribute<ECOORD>( aElement, "x" );
804  y = parseRequiredAttribute<ECOORD>( aElement, "y" );
806  // optional
807  locked = parseOptionalAttribute<bool>( aElement, "locked" );
808  smashed = parseOptionalAttribute<bool>( aElement, "smashed" );
809  rot = parseOptionalAttribute<EROT>( aElement, "rot" );
810 }
string package
Definition: eagle_parser.h:789
string name
Definition: eagle_parser.h:787
opt_erot rot
Definition: eagle_parser.h:795
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:794
Definition: eagle_parser.h:792
string value
Definition: eagle_parser.h:790
Definition: eagle_parser.h:791
string library
Definition: eagle_parser.h:788
opt_bool locked
Definition: eagle_parser.h:793

Member Data Documentation

string EELEMENT::library

Definition at line 788 of file eagle_parser.h.

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

opt_bool EELEMENT::locked

Definition at line 793 of file eagle_parser.h.

Referenced by EELEMENT().

string EELEMENT::package

Definition at line 789 of file eagle_parser.h.

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

opt_erot EELEMENT::rot
opt_bool EELEMENT::smashed

Definition at line 794 of file eagle_parser.h.

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

string EELEMENT::value

Definition at line 790 of file eagle_parser.h.

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


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