/usr/include/wvstreams/uninullgen.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 | /* -*- Mode: C++ -*-
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* A generator that is always empty and rejects changes.
*/
#ifndef __UNICONFNULL_H
#define __UNICONFNULL_H
#include "uniconfgen.h"
/**
* A generator that is always empty and rejects changes.
*
* To mount, use the moniker "null:".
*
*/
class UniNullGen : public UniConfGen
{
public:
UniNullGen() { };
virtual ~UniNullGen() { };
/***** Overridden methods *****/
virtual void flush_buffers() { }
virtual WvString get(const UniConfKey &key) { return WvString::null; }
virtual void set(const UniConfKey &key, WvStringParm value) { }
virtual void setv(const UniConfPairList &pairs) { }
virtual bool haschildren(const UniConfKey &key) { return false; }
virtual Iter *iterator(const UniConfKey &key) { return new NullIter(); }
};
#endif // __UNICONFNULL_H
|