GnuCash 2.4.99
sixtp-dom-generators.h
00001 /********************************************************************
00002  * sixtp-dom-generators.h                                           *
00003  * Copyright 2001 Gnumatic, Inc.                                    *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021  *                                                                  *
00022  ********************************************************************/
00023 
00024 #ifndef SIXTP_DOM_GENERATORS_H
00025 #define SIXTP_DOM_GENERATORS_H
00026 
00027 #include <glib.h>
00028 
00029 #include "gnc-xml-helper.h"
00030 
00031 #include "sixtp-dom-generators.h"
00032 #include "gnc-commodity.h"
00033 #include "qof.h"
00034 #include "Recurrence.h"
00035 
00036 xmlNodePtr text_to_dom_tree(const char *tag, const char *str);
00037 xmlNodePtr int_to_dom_tree(const char *tag, gint64 val);
00038 xmlNodePtr boolean_to_dom_tree(const char* tag, gboolean val);
00039 xmlNodePtr guid_to_dom_tree(const char *tag, const GncGUID* gid);
00040 xmlNodePtr commodity_ref_to_dom_tree(const char *tag, const gnc_commodity *c);
00041 xmlNodePtr timespec_to_dom_tree(const char *tag, const Timespec *spec);
00042 gchar * timespec_nsec_to_string(const Timespec *ts);
00043 gchar * timespec_sec_to_string(const Timespec *ts);
00044 xmlNodePtr gdate_to_dom_tree(const char *tag, const GDate *spec);
00045 xmlNodePtr gnc_numeric_to_dom_tree(const char *tag, const gnc_numeric *num);
00046 xmlNodePtr kvp_frame_to_dom_tree(const char *tag, const kvp_frame *frame);
00047 xmlNodePtr guint_to_dom_tree(const char *tag, guint an_int);
00048 xmlNodePtr recurrence_to_dom_tree(const gchar *tag, const Recurrence *r);
00049 
00050 gchar* double_to_string(double value);
00051 
00052 #endif /* _SIXTP_DOM_GENERATORS_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines