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
11 #ifndef __WVSYNCSTRING_H
12 #define __WVSYNCSTRING_H
14 #include "wvsyncobj.h"
17 class WvSyncString
: public WvSyncObj
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
,
30 virtual bool isok() const;
32 WvString
string() const;
38 virtual bool getdata(WvBuf
&out
, off_t ofs
, size_t size
);
39 virtual off_t
approxsize() const;
42 #endif // __WVSYNCSTRING_H