E.XmlHash – libedataserver-1.2 Reference Manual
Packages
libedataserver-1.2
E
XmlHash
@new
add
compare
destroy
foreach_key
foreach_key_remove
remove
write
XmlHash
Object Hierarchy:
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
@new
(
string
filename)
Creates a new
XmlHash
from the file
filename
.
Methods:
public
void
add
(
string
key,
string
data)
Adds a new key/value pair to the
XmlHash
hash
.
public
XmlHashStatus
compare
(
string
key,
string
compare_data)
Compares the value with key equal to
key
in
hash
against
compare_data
.
public
void
destroy
()
Frees the memory associated with
hash
.
public
void
foreach_key
(
XmlHashFunc
func)
Executes
func
against each key/value pair in
hash
.
public
void
foreach_key_remove
(
XmlHashRemoveFunc
func)
Calls
foreach_remove
on
hash
<!-- -->'s internal hash table.
public
void
remove
(
string
key)
Remove the entry in
hash
with key equal to
key
, if it exists.
public
void
write
()
Writes the XML represented by
hash
to the file originally passed to
@new
.