10 #include "unitempgen.h"
28 typedef wv::function<void()> SaveCallback;
42 UniIniGen(WvStringParm filename,
int _create_mode = 0666,
43 SaveCallback _save_cb = SaveCallback());
56 bool commit_atomic(WvStringParm real_filename);
65 #endif // __UNICONFINI_H
virtual void commit()
Commits any changes.
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
WvFile implements a stream connected to a file or Unix device.
Loads and saves ".ini"-style files similar to those used by Windows, but adapted to represent keys an...
virtual bool refresh()
Refreshes information about a key recursively.
WvString is an implementation of a simple and efficient printable-string class.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
UniIniGen(WvStringParm filename, int _create_mode=0666, SaveCallback _save_cb=SaveCallback())
Creates a generator which can load/modify/save a .ini file.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
A plain UniConfTree that holds keys and values.
A UniConf generator that stores keys in memory.