E.XmlHash – libedataserver-1.2 Reference Manual
XmlHash
Object Hierarchy:
E.XmlHash
E.XmlHash
E.XmlHash
Description:
[
CCode
( has_type_id =
false
) ]
[
Compact
]
public
class
XmlHash
A hash table representation of an XML file.
Namespace:
E
Package:
libedataserver-1.2
Content:
Static methods:
public
static
XmlHash
xmlhash_new
(
string
filename)
Creates a new
XmlHash
from the file
filename
.
Methods:
public
void
xmlhash_add
(
string
key,
string
data)
Adds a new key/value pair to the
XmlHash
hash
.
public
XmlHashStatus
xmlhash_compare
(
string
key,
string
compare_data)
Compares the value with key equal to
key
in
hash
against
compare_data
.
public
void
xmlhash_destroy
()
Frees the memory associated with
hash
.
public
void
xmlhash_foreach_key
(
XmlHashFunc
func)
Executes
func
against each key/value pair in
hash
.
public
void
xmlhash_foreach_key_remove
(
XmlHashRemoveFunc
func)
Calls
foreach_remove
on
hash
's internal hash table.
public
void
xmlhash_remove
(
string
key)
Remove the entry in
hash
with key equal to
key
, if it exists.
public
void
xmlhash_write
()
Writes the XML represented by
hash
to the file originally passed to
xmlhash_new
.
2022 vala-language.org