KiCad PCB EDA Suite
|
Keep track of what we are working on within a PTREE. More...
#include <eagle_parser.h>
Public Member Functions | |
void | push (const char *aPathSegment, const char *aAttribute="") |
void | clear () |
void | pop () |
void | Value (const char *aValue) |
modify the last path node's value | |
void | Attribute (const char *aAttribute) |
modify the last path node's attribute | |
wxString | Contents () |
return the contents of the XPATH as a single string | |
Private Attributes | |
std::vector< TRIPLET > | p |
Keep track of what we are working on within a PTREE.
Then if an exception is thrown, the place within the tree that gave us grief can be reported almost accurately. To minimally impact speed, merely assign const char* pointers during the tree walking expedition. The const char* pointers must be to C strings residing either in the data or code segment (i.e. "compiled in") or within the XML document, but not on the stack, since the stack is unwound during the throwing of the exception. The XML document will not immediately vanish since we capture the xpath (using function Contents()) before the XML document tree (PTREE) is destroyed.
Definition at line 123 of file eagle_parser.h.
|
inline |
|
inline |
|
inline |
return the contents of the XPATH as a single string
Definition at line 150 of file eagle_parser.h.
References p.
Referenced by PCB_IO_EAGLE::LoadBoard().
|
inline |
Definition at line 135 of file eagle_parser.h.
References p.
Referenced by PCB_IO_EAGLE::loadAllSections(), PCB_IO_EAGLE::loadDesignRules(), and PCB_IO_EAGLE::loadPlain().
|
inline |
Definition at line 128 of file eagle_parser.h.
References p.
Referenced by PCB_IO_EAGLE::loadAllSections(), PCB_IO_EAGLE::loadDesignRules(), PCB_IO_EAGLE::loadLibrary(), and PCB_IO_EAGLE::loadPlain().
|
inline |
|
private |
Definition at line 125 of file eagle_parser.h.
Referenced by Attribute(), clear(), Contents(), pop(), push(), and Value().