Documentation de la bibliothèque MLV-0.5

MLV_xml.h

Aller à la documentation de ce fichier.
00001 /*
00002  *   This file is part of the MLV Library.
00003  *
00004  *   Copyright (C) 2010 Adrien Boussicault, Marc Zipstein
00005  *
00006  *
00007  *    This Library is free software: you can redistribute it and/or modify
00008  *    it under the terms of the GNU General Public License as published by
00009  *    the Free Software Foundation, either version 3 of the License, or
00010  *    (at your option) any later version.
00011  *
00012  *    This Library is distributed in the hope that it will be useful,
00013  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *    GNU General Public License for more details.
00016  *
00017  *    You should have received a copy of the GNU General Public License
00018  *    along with this Library.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00039 #ifndef __MLV_XML_H__
00040 #define __MLV_XML_H__
00041 
00042 #include <stdarg.h>
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00051 typedef struct _MLV_Xml MLV_Xml;
00052 
00062 MLV_Xml* MLV_load_xml( const char* xml_file_path );
00063 
00069 void MLV_free_xml( MLV_Xml* xml_data );
00070 
00078 char* MLV_get_string_value_from_xml(
00079         MLV_Xml* xml_data, int i, const char* xpath, ...
00080 );
00081 
00090 char* MLV_get_string_value_from_xml_va(
00091         MLV_Xml* xml_data, int i, const char* xpath, va_list pile
00092 );
00093 
00094 
00102 int MLV_get_integer_value_from_xml(
00103         MLV_Xml* xml_data, int i, const char* xpath, ...
00104 );
00105 
00114 double MLV_get_double_value_from_xml(
00115         MLV_Xml* xml_data, int i, const char* xpath, ...
00116 );
00117 
00126 float MLV_get_float_value_from_xml(
00127         MLV_Xml* xml_data, int i, const char* xpath, ...
00128 );
00129 
00130 
00139 int MLV_get_number_of_objects_from_xml( MLV_Xml* xml_data, const char* xpath, ... );
00140 
00147 MLV_Xml* MLV_get_xml_object_of( MLV_Xml* xml_data, ... );
00148 
00155 void MLV_print_xml( MLV_Xml* xml_data );
00156 
00157 #ifdef __cplusplus
00158 }
00159 #endif
00160 
00161 #endif