Definition in file yanera_xml_input.h.
Go to the source code of this file.
Functions | |
void | yanera_read_xml (yanera_container *yanera) |
Parses the XML root node. | |
void | parseModelSection (xmlDocPtr xml_doc, xmlNodePtr xml_parent_node, yanera_container *yanera) |
Parses the <model_section/> node. | |
void | parseModel (xmlDocPtr xml_doc, xmlNodePtr xml_node_model, yanera_model *model, yanera_container *yanera) |
Parses the <model/> node. | |
void | parseLayer (xmlDocPtr xml_doc, xmlNodePtr xml_node_layer, yanera_layer *layer, yanera_container *yanera) |
Parses the <layer/> node. | |
void | parseRepeat (xmlDocPtr xml_doc, xmlNodePtr xml_node_parent, unsigned short repeat_number, yanera_model *model, yanera_container *yanera) |
Parses a <repeat/> node. | |
void | parseDataSection (xmlDocPtr xml_doc, xmlNodePtr xml_node_parent, yanera_container *yanera) |
Parses the <data_section/>. | |
void | parseData (xmlDocPtr xml_doc, xmlNodePtr xml_node_parent, yanera_data *data) |
Parses a <data/> node. | |
void | parseResolution (xmlDocPtr xml_doc, xmlNodePtr xml_node_data, yanera_data *data) |
Parses a <resolution/> node. | |
void | parseMiscellaneousSection (xmlDocPtr xml_doc, xmlNodePtr xml_parent_node, yanera_container *yanera) |
Parses a <miscellaneous_section/> node. | |
void | parseMinMax (xmlDocPtr xml_doc, xmlNodePtr xml_node_parent, unsigned short index, yanera_container *yanera) |
Parses <min//> nodes. |
void yanera_read_xml | ( | yanera_container * | yanera | ) |
[in] | filename | The XML input file name |
yanera | A newly allocated yanera_container that will hold the data in memory. |
Definition at line 27 of file yanera_xml_input.c.
void parseModelSection | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_parent_node, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_parent_node | In this case the <model_section/> of the XML DOM. |
yanera | The yanera_container that holds the data in memory. |
Definition at line 108 of file yanera_xml_input.c.
void parseModel | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_model, | |||
yanera_model * | model, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_model | The <model_section/> node of the XML DOM. |
model | A newly allocated yanera_model that will hold the data. | |
yanera | The yanera_container that holds the data in memory. |
model
in memory, so the purpose of the yanera
variable is access to the yanera_parameters
. The model
has already been linked into the list of models in yanera
.Children of the <model/> node are:
Definition at line 195 of file yanera_xml_input.c.
void parseLayer | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_layer, | |||
yanera_layer * | layer, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_layer | This can either be a <layer/> node or a <repeat/> node. |
layer | A newly allocated yanera_layer that will hold the data. | |
yanera | The yanera_container that holds the data in memory. |
layer
in memory, so the purpose of the yanera
variable is access to the yanera_parameters
. The layer
has already been linked into the list of layers in the appropriate model.Possible children of the <layer/> node are:
Definition at line 312 of file yanera_xml_input.c.
void parseRepeat | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_parent, | |||
unsigned short | repeat_number, | |||
yanera_model * | model, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_parent | In this case a <model/> node of the XML DOM. |
[in] | repeat_number | A property of the <repeat/> node indicating the number of types the groupd of layers should be repeated. |
model | A newly allocated yanera_model that will hold the data. | |
yanera | The yanera_container that holds the data in memory. |
Children of the <repeat/> node are:
Definition at line 690 of file yanera_xml_input.c.
void parseDataSection | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_parent, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_parent | In this case the node of the XML DOM. |
yanera | The yanera_container that holds the data in memory. |
Children of the <data_section/> node are:
Definition at line 785 of file yanera_xml_input.c.
void parseData | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_parent, | |||
yanera_data * | data | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_parent | In this case a <data_section/> node of the XML DOM. |
data | A newly allcoated yanera_data that holds the data in memory. |
Children of the <data/> node are:
Definition at line 816 of file yanera_xml_input.c.
void parseResolution | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_data, | |||
yanera_data * | data | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_data | A <data/> node of the XML DOM. |
data | A newly allcoated yanera_data that holds the data in memory. |
Children of the <data/> node are:
Definition at line 849 of file yanera_xml_input.c.
void parseMiscellaneousSection | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_parent_node, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_parent_node | In this case the <miscellaneous_section/> of the XML DOM. |
yanera | The yanera_container that holds the data in memory. |
Children of the <miscellaneous_section/> node are:
Definition at line 927 of file yanera_xml_input.c.
void parseMinMax | ( | xmlDocPtr | xml_doc, | |
xmlNodePtr | xml_node_parent, | |||
unsigned short | index, | |||
yanera_container * | yanera | |||
) |
[in] | xml_doc | The XML document structure. |
[in] | xml_node_parent | In this case the parameter node currently being read. |
index | The array index of the parameter currently being read. | |
yanera | The yanera_container that holds the data in memory. |
Definition at line 1215 of file yanera_xml_input.c.