Make WvStreams compile with gcc 4.4.
[wvstreams.git] / include / uniconfpair.h
blobc51ca295fb5dec5d43825d6767a8ec4cdf84dc59
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * UniConf key-value pair storage abstraction.
6 */
7 #ifndef __UNICONFPAIR_H
8 #define __UNICONFPAIR_H
10 #include "uniconfkey.h"
11 #include "wvstring.h"
12 #include "wvhashtable.h"
15 /** Represents a simple key-value pair. */
16 class UniConfPair
18 UniConfKey xkey; /*!< the name of this entry */
19 WvString xvalue; /*!< the value of this entry */
21 public:
22 /**
23 * Creates a UniConfPair.
24 * "key" is the key
25 * "value" is the value
27 UniConfPair(const UniConfKey &key, WvStringParm value)
28 : xkey(key), xvalue(value) { }
31 const UniConfKey &key() const
32 { return xkey; }
34 const WvString &value()
35 { return xvalue; }
37 void setvalue(WvStringParm value) { xvalue = value; }
39 void setkey(UniConfKey &key) { xkey = key; }
42 DeclareWvList(UniConfPair);
44 #endif //__UNICONFPAIR_H