File: write_xml.h

package info (click to toggle)
ggobi 2.1.9~20091212-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,340 kB
  • ctags: 5,083
  • sloc: ansic: 57,242; xml: 30,604; cpp: 833; makefile: 355; java: 225; perl: 201; sh: 122; python: 23
file content (67 lines) | stat: -rw-r--r-- 2,405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef WRITE_XML_H
#define WRITE_XML_H

#include <stdio.h>

#include <libxml/parser.h>
#include "vars.h"
#include "externs.h"

#include <gtk/gtk.h>

#ifdef __cplusplus 
extern "C" {
#endif

  /*
    An instance of this structure is passed to all the routines
    that are called when writing the XML representation of a
    ggobid object (its datad elements). 
    Thus it can be used to store additional information that
    may be needed by the output engine for particular elements
    and attributes.
    For example, we might add the description text here.
    Also, we might add the precision (number of digits after
    the decimal point) here and look at it in writeFloat().
    Or we might have an `inline' field to indicate whether the colormap
    should be output directly into the file/stream or separately.
    So basically, this can also hold options.
   */

typedef struct {

 gboolean useDefault;
 gint   defaultGlyphSize;
 gint   defaultGlyphType;
 gchar *defaultGlyphTypeName;
 gchar *defaultGlyphSizeName;
 gshort defaultColor;
 gchar *defaultColorName;

} XmlWriteInfo;




gboolean write_xml (const gchar *filename, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_stream (FILE *f, ggobid *gg, const gchar *, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_dataset(FILE *f, GGobiData *d, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_header (FILE *f, int numDatasets, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_footer(FILE *f, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_description (FILE *f, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_variables (FILE *f, GGobiData *, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_variable (FILE *f, GGobiData *, ggobid *gg, gint i, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_records (FILE *f, GGobiData *d, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
  gboolean write_xml_record (FILE *, GGobiData *, ggobid *, gint, vartyped *, XmlWriteInfo *xmlWriteInfo);

gboolean write_xml_edges(FILE *f, GGobiData *d, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_xml_edge(FILE *f, GGobiData *d, ggobid *gg, gint i, XmlWriteInfo *xmlWriteInfo);

gboolean write_dataset_header(FILE *f, GGobiData *, ggobid *gg, XmlWriteInfo *xmlWriteInfo);
gboolean write_dataset_footer(FILE *f, ggobid *gg, XmlWriteInfo *xmlWriteInfo);

#ifdef __cplusplus 
}
#endif

#endif