/usr/include/wvstreams/unilistgen.h is in libwvstreams-dev 4.6.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /* -*- Mode: C++ -*-
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* UniListGen is a UniConf generator to allow multiple generators to be
* stacked in a priority sequence for get/set/etc.
*
*/
#ifndef __UNICONFLISTGEN_H
#define __UNICONFLISTGEN_H
#include "uniconfgen.h"
#include "wvscatterhash.h"
/**
* Accepts a list of UniConf generators, and stacks them, treating them as one
* uniconf source.
*
* The standard way of using the list generator would be with a moniker. The
* moniker takes the form of list:(tcl style string list).
*
* For example: list:readonly:ini:admin.ini ini:user.ini
*
* The list can also contain a list. This still uses tcl style string lists as
* follows:
*
* list:readonly:ini:admin.ini list:{ini:user1.ini ini:user2.ini} ini:def.ini
*/
class UniListGen : public UniConfGen
{
public:
UniListGen(UniConfGenList *_l);
virtual ~UniListGen();
UniConfGenList *l;
/***** Overridden members *****/
virtual void commit();
virtual bool refresh();
virtual void flush_buffers() { }
virtual WvString get(const UniConfKey &key);
virtual void set(const UniConfKey &key, WvStringParm value);
virtual void setv(const UniConfPairList &pairs);
virtual bool exists(const UniConfKey &key);
virtual bool haschildren(const UniConfKey &key);
virtual bool isok();
virtual Iter *iterator(const UniConfKey &key);
class IterIter;
protected:
/**
* Called by first generator when a key changes.
* The default implementation calls delta(key).
*/
virtual void gencallback(const UniConfKey &key, WvStringParm value);
};
#endif // __UNICONFLISTGEN_H
|