WvStreams
uniconfpair.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * UniConf key-value pair storage abstraction.
6  */
7 #ifndef __UNICONFPAIR_H
8 #define __UNICONFPAIR_H
9 
10 #include "uniconfkey.h"
11 #include "wvstring.h"
12 #include "wvhashtable.h"
13 
14 
17 {
18  UniConfKey xkey;
19  WvString xvalue;
21 public:
27  UniConfPair(const UniConfKey &key, WvStringParm value)
28  : xkey(key), xvalue(value) { }
29 
30 
31  const UniConfKey &key() const
32  { return xkey; }
33 
34  const WvString &value()
35  { return xvalue; }
36 
37  void setvalue(WvStringParm value) { xvalue = value; }
38 
39  void setkey(UniConfKey &key) { xkey = key; }
40 };
41 
42 DeclareWvList(UniConfPair);
43 
44 #endif //__UNICONFPAIR_H
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:329
UniConfKey
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition: uniconfkey.h:38
UniConfPair::UniConfPair
UniConfPair(const UniConfKey &key, WvStringParm value)
Creates a UniConfPair.
Definition: uniconfpair.h:27
UniConfPair
Represents a simple key-value pair.
Definition: uniconfpair.h:16