Main Page | Data Structures | File List | Data Fields | Globals

xmlobjectfactory.h File Reference

#include <libxml/tree.h>
#include "object.h"

Include dependency graph for xmlobjectfactory.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

AlarmdObjectobject_factory (xmlNode *object_node)
 object_factory: : The node in the tree, which describes the object to be.
GParameter * elements_to_parameters (xmlNode *object_node, guint *n_params)
 elements_to_parameters: : Node whose children should be handled.


Function Documentation

GParameter* elements_to_parameters xmlNode *  object_node,
guint *  n_params
 

elements_to_parameters: : Node whose children should be handled.

: Pointer to guint that should hold the size of returned array.

Scans the children of #object_node for occurrencies of parameter nodes. A GParameter array is build of these. Returns: Newly allocated GParameter array, use alarmd_gparameterv_free to free.

Definition at line 105 of file xmlobjectfactory.c.

References A_NAME, A_TYPE, E_COUNT, E_PARAMETER, get_element_text(), get_id(), object_factory(), T_ATTRIBUTE, T_COUNT, T_ELEMENT, T_TYPE, type_gtypes, Y_BOOLEAN, Y_CHAR, Y_INT, Y_INT64, Y_LONG, Y_OBJECT, Y_STRING, Y_UCHAR, Y_UINT, Y_UINT64, and Y_ULONG.

Referenced by init_queue(), and object_factory().

AlarmdObject* object_factory xmlNode *  object_node  ) 
 

object_factory: : The node in the tree, which describes the object to be.

Creates a new object from the xnk tree. May recursively call self to create sub-objects. Returns: Newly created object.

Definition at line 218 of file xmlobjectfactory.c.

References A_TYPE, alarmd_gparameterv_free(), DEBUG, E_OBJECT, elements_to_parameters(), ENTER_FUNC, get_element_text(), get_id(), LEAVE_FUNC, T_ATTRIBUTE, and T_ELEMENT.

Referenced by elements_to_parameters(), and init_queue().


Generated on Thu Dec 21 18:23:31 2006 for Alarmd by  doxygen 1.4.2