gebr-geoxml-tmpl

gebr-geoxml-tmpl

Functions

gchar * gebr_geoxml_tmpl_get ()
gboolean gebr_geoxml_tmpl_set ()
gboolean gebr_geoxml_tmpl_append ()

Object Hierarchy


Description

Functions

gebr_geoxml_tmpl_get ()

gchar *
gebr_geoxml_tmpl_get (GString *tmpl,
                      const gchar *tag);

Searchs for the text between >-- begin tag --< and >-- end tag --< and returns a copy of it. If tag is not found, then NULL is returned.

Parameters

tmpl

the string buffer containing the template

 

tag

the name of the tag to be fetched

 

Returns

a newly allocated c-string or NULL if tag was not found.


gebr_geoxml_tmpl_set ()

gboolean
gebr_geoxml_tmpl_set (GString *tmpl,
                      const gchar *tag,
                      const gchar *value);

Replaces the content between >-- begin tag --< and >-- end tag --<. If tag was not found, then FALSE is returned and tmpl is left unchanged.

Parameters

tmpl

the string buffer containing the template

 

tag

the name of the tag to be set

 

value

the value that will replace the tag

 

Returns

TRUE if tag was found, FALSE otherwise.


gebr_geoxml_tmpl_append ()

gboolean
gebr_geoxml_tmpl_append (GString *tmpl,
                         const gchar *tag,
                         const gchar *value);

Inserts value at the end of tag .

Parameters

tmpl

the string buffer containing the template

 

tag

the name of the tag to be set

 

value

the value that will be appended to the end of the tag

 

Returns

TRUE if tag was found, FALSE otherwise.

Types and Values