pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | s_xmlout |
Defines | |
#define | XPUTS fputs |
#define | XPRINTF fprintf |
#define | XNEWLINE indent[xmlout.count] |
#define | XOUT_DETENT() if(xmlout.count) xmlout.count-- |
#define | XOUT_INDENT() xmlout.count++ |
#define | XOUT_ELEMENT_2ATTR_START(name, id1, val1, id2, val2) XPRINTF(xmlout.fd, "<%s %s=\"%s\" %s=\"%s\">", name, id1, val1, id2, val2); |
#define | XOUT_ELEMENT_ATTR_START(name, id, val) XPRINTF(xmlout.fd, "<%s %s=\"%s\">", name, id, val); |
#define | XOUT_ELEMENT_START(name) XPRINTF(xmlout.fd, "<%s>", name); |
#define | XOUT_ELEMENT_END(name) XPRINTF(xmlout.fd, "</%s>", name); |
#define | XOUT_ELEMENT_EMPTY(name) XPRINTF(xmlout.fd, "<%s/>", name) |
#define | XOUT_ELEMENT_ATTR_EMPTY(name, id, val) XPRINTF(xmlout.fd, "<%s %s=\"%s\"/>", name, id, val) |
#define | XOUT_ELEMENT_DATA(data) XPRINTF(xmlout.fd, "%s", data) |
#define | XOUT_NEWLINE() XPUTS( XNEWLINE, xmlout.fd) |
#define | XOUT_ELEMENT(name, data) |
#define | XOUT_ELEMENT_ATTR(name, id, val, data) |
#define | XOUT_HEADER() XPRINTF(xmlout.fd, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); |
#define | XOUT_INIT(filename) |
#define | XOUT_CLOSE() |
Variables | |
struct s_xmlout | xmlout |
char * | indent [] |
#define XOUT_CLOSE | ( | ) |
#define XOUT_DETENT | ( | ) | if(xmlout.count) xmlout.count-- |
Definition at line 32 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), and gsvit_write_xspace().
#define XOUT_ELEMENT | ( | name, | |
data | |||
) |
XOUT_ELEMENT_START(name);\ XOUT_ELEMENT_DATA(data);\ XOUT_ELEMENT_END(name);
Definition at line 52 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), gsvit_write_xspace(), and gsvit_xml_out().
#define XOUT_ELEMENT_2ATTR_START | ( | name, | |
id1, | |||
val1, | |||
id2, | |||
val2 | |||
) | XPRINTF(xmlout.fd, "<%s %s=\"%s\" %s=\"%s\">", name, id1, val1, id2, val2); |
#define XOUT_ELEMENT_ATTR | ( | name, | |
id, | |||
val, | |||
data | |||
) |
XOUT_ELEMENT_ATTR_START(name, id, val);\ XOUT_ELEMENT_DATA(data);\ XOUT_ELEMENT_END(name);
Definition at line 56 of file xmlout.h.
Referenced by gsvit_write_xspace().
#define XOUT_ELEMENT_ATTR_EMPTY | ( | name, | |
id, | |||
val | |||
) | XPRINTF(xmlout.fd, "<%s %s=\"%s\"/>", name, id, val) |
#define XOUT_ELEMENT_ATTR_START | ( | name, | |
id, | |||
val | |||
) | XPRINTF(xmlout.fd, "<%s %s=\"%s\">", name, id, val); |
Definition at line 38 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), and gsvit_write_xnets().
#define XOUT_ELEMENT_DATA | ( | data | ) | XPRINTF(xmlout.fd, "%s", data) |
Definition at line 48 of file xmlout.h.
Referenced by gsvit_write_xdrills(), and gsvit_write_xnets().
#define XOUT_ELEMENT_EMPTY | ( | name | ) | XPRINTF(xmlout.fd, "<%s/>", name) |
#define XOUT_ELEMENT_END | ( | name | ) | XPRINTF(xmlout.fd, "</%s>", name); |
Definition at line 42 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), gsvit_write_xspace(), and gsvit_xml_out().
#define XOUT_ELEMENT_START | ( | name | ) | XPRINTF(xmlout.fd, "<%s>", name); |
Definition at line 40 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), gsvit_write_xspace(), and gsvit_xml_out().
#define XOUT_HEADER | ( | ) | XPRINTF(xmlout.fd, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); |
Definition at line 60 of file xmlout.h.
Referenced by gsvit_xml_out().
#define XOUT_INDENT | ( | ) | xmlout.count++ |
Definition at line 34 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), gsvit_write_xspace(), and gsvit_xml_out().
#define XOUT_INIT | ( | filename | ) |
#define XOUT_NEWLINE | ( | ) | XPUTS( XNEWLINE, xmlout.fd) |
Definition at line 50 of file xmlout.h.
Referenced by gsvit_write_xcentroids(), gsvit_write_xdrills(), gsvit_write_xnets(), gsvit_write_xspace(), and gsvit_xml_out().
char* indent[] |