Oops, my fix to subdir.mk didn't work with existing symlinks. Fixed.
[wvapps.git] / wvsync / wvsyncstring.h
blobeb3db491cd84900791554f5ff5d9c6a836eca6d7
1 /*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2004 Net Integration Technologies, Inc.
5 * WvSyncString provides the WvSyncObj implementation necessarily to
6 * conduct librsync operations on a WvString. This is mainly useful for
7 * testing.
9 */
11 #ifndef __WVSYNCSTRING_H
12 #define __WVSYNCSTRING_H
14 #include "wvsyncobj.h"
15 #include <time.h>
17 class WvSyncString : public WvSyncObj
19 public:
20 WvSyncString(WvStringParm _name, WvStringParm _str, time_t mtime = 1);
21 virtual time_t findlastmodtime() const;
23 // no real way to implement this... but in real life, you'd have to.
24 virtual void makecopy(WvStringParm newname) const
27 virtual bool installnew(WvStringParm fname, WvStringParm newmeta,
28 time_t newmtime);
30 virtual bool isok() const;
32 WvString string() const;
34 private:
35 WvString str;
36 time_t faketime;
38 virtual bool getdata(WvBuf &out, off_t ofs, size_t size);
39 virtual off_t approxsize() const;
42 #endif // __WVSYNCSTRING_H