2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * UniConf key-value pair storage abstraction.
7 #ifndef __UNICONFPAIR_H
8 #define __UNICONFPAIR_H
10 #include "uniconfkey.h"
12 #include "wvhashtable.h"
15 /** Represents a simple key-value pair. */
18 UniConfKey xkey
; /*!< the name of this entry */
19 WvString xvalue
; /*!< the value of this entry */
23 * Creates a UniConfPair.
25 * "value" is the value
27 UniConfPair(const UniConfKey
&key
, WvStringParm value
)
28 : xkey(key
), xvalue(value
) { }
31 const UniConfKey
&key() const
34 const WvString
&value()
37 void setvalue(WvStringParm value
) { xvalue
= value
; }
39 void setkey(UniConfKey
&key
) { xkey
= key
; }
42 DeclareWvList(UniConfPair
);
44 #endif //__UNICONFPAIR_H