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;
21public:
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
42DeclareWvList(UniConfPair);
43
44#endif //__UNICONFPAIR_H
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition: uniconfkey.h:39
Represents a simple key-value pair.
Definition: uniconfpair.h:17
UniConfPair(const UniConfKey &key, WvStringParm value)
Creates a UniConfPair.
Definition: uniconfpair.h:27
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Definition: wvstring.h:94
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:330