GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sixtp-dom-generators.h
1 /********************************************************************
2  * sixtp-dom-generators.h *
3  * Copyright 2001 Gnumatic, Inc. *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21  * *
22  ********************************************************************/
23 
24 #ifndef SIXTP_DOM_GENERATORS_H
25 #define SIXTP_DOM_GENERATORS_H
26 
27 #include <glib.h>
28 
29 #include "gnc-xml-helper.h"
30 
31 #include "sixtp-dom-generators.h"
32 #include "gnc-commodity.h"
33 #include "qof.h"
34 #include "Recurrence.h"
35 
36 xmlNodePtr text_to_dom_tree(const char *tag, const char *str);
37 xmlNodePtr int_to_dom_tree(const char *tag, gint64 val);
38 xmlNodePtr boolean_to_dom_tree(const char* tag, gboolean val);
39 xmlNodePtr guid_to_dom_tree(const char *tag, const GncGUID* gid);
40 xmlNodePtr commodity_ref_to_dom_tree(const char *tag, const gnc_commodity *c);
41 xmlNodePtr timespec_to_dom_tree(const char *tag, const Timespec *spec);
42 gchar * timespec_nsec_to_string(const Timespec *ts);
43 gchar * timespec_sec_to_string(const Timespec *ts);
44 xmlNodePtr gdate_to_dom_tree(const char *tag, const GDate *spec);
45 xmlNodePtr gnc_numeric_to_dom_tree(const char *tag, const gnc_numeric *num);
46 xmlNodePtr kvp_frame_to_dom_tree(const char *tag, const KvpFrame *frame);
47 xmlNodePtr guint_to_dom_tree(const char *tag, guint an_int);
48 xmlNodePtr recurrence_to_dom_tree(const gchar *tag, const Recurrence *r);
49 
50 gchar* double_to_string(double value);
51 
52 #endif /* _SIXTP_DOM_GENERATORS_H_ */
Use a 64-bit unsigned int timespec.
Definition: gnc-date.h:299
Definition: guid.h:65
struct KvpFrameImpl KvpFrame
Definition: kvp_frame.h:76
Commodity handling public routines.