/home/dko/projects/mobilec/trunk/src/include/xml_parser.h

Go to the documentation of this file.
00001 /*[
00002  * Copyright (c) 2007 Integration Engineering Laboratory
00003                       University of California, Davis
00004  *
00005  * Permission to use, copy, and distribute this software and its
00006  * documentation for any purpose with or without fee is hereby granted,
00007  * provided that the above copyright notice appear in all copies and
00008  * that both that copyright notice and this permission notice appear
00009  * in supporting documentation.
00010  *
00011  * Permission to modify the software is granted, but not the right to
00012  * distribute the complete modified source code.  Modifications are to
00013  * be distributed as patches to the released version.  Permission to
00014  * distribute binaries produced by compiling modified sources is granted,
00015  * provided you
00016  *   1. distribute the corresponding source modifications from the
00017  *    released version in the form of a patch file along with the binaries,
00018  *   2. add special version identification to distinguish your version
00019  *    in addition to the base release version number,
00020  *   3. provide your name and address as the primary contact for the
00021  *    support of your modified version, and
00022  *   4. retain our contact information in regard to use of the base
00023  *    software.
00024  * Permission to distribute the released version of the source code along
00025  * with corresponding source modifications in the form of a patch file is
00026  * granted with same provisions 2 through 4 for binary distributions.
00027  *
00028  * This software is provided "as is" without express or implied warranty
00029  * to the extent permitted by applicable law.
00030 ]*/
00031 
00032 #ifndef _XML_PARSER_H_
00033 #define _XML_PARSER_H_
00034 #include <mxml.h>
00035 #include "macros.h"
00036 #include "agent.h"
00037 
00038 STRUCT ( xml_parser,
00039     const mxml_node_t *root;
00040     const mxml_node_t *node; );
00041 
00042 
00043 error_code_t 
00044 agent_xml_parse(agent_p agent);
00045 
00046 error_code_t 
00047 agent_xml_parse__mobile_agent
00048 (
00049  agent_p agent, 
00050  xml_parser_p xml_parser
00051  );
00052 
00053 error_code_t
00054 agent_xml_parse__agent_data
00055 (
00056  agent_p agent,
00057  xml_parser_p xml_parser
00058  );
00059 
00060 error_code_t
00061 agent_xml_parse__name(agent_p agent, xml_parser_p xml_parser);
00062 
00063 error_code_t
00064 agent_xml_parse__owner(agent_p agent, xml_parser_p xml_parser);
00065 
00066 error_code_t
00067 agent_xml_parse__home(agent_p agent, xml_parser_p xml_parser);
00068 
00069 error_code_t
00070 agent_xml_parse__task(agent_p agent, xml_parser_p xml_parser);
00071 
00072 error_code_t
00073 agent_xml_parse__data(agent_p agent, xml_parser_p xml_parser, int index);
00074 
00075 error_code_t
00076 agent_xml_parse__row(agent_p agent, xml_parser_p xml_parser, int index);
00077 
00078 void agent_xml_parse__fill_row_data(
00079         void *data,
00080         ChType_t type,
00081         int *extent,
00082         const mxml_node_t* node,
00083         int *index);
00084 
00085 
00086 error_code_t
00087 agent_xml_parse__agent_code(agent_p agent, int index, xml_parser_p xml_parser);
00088 
00089 error_code_t
00090 message_xml_parse(message_p message);
00091 
00092 error_code_t
00093 message_xml_parse__message(message_p message, xml_parser_p xml_parser);
00094 #endif 

Generated on Fri May 16 14:49:54 2008 for Mobile-C by  doxygen 1.5.4