*** empty log message ***

This commit is contained in:
Mike Goslin 2000-11-22 00:06:54 +00:00
parent 6788d08998
commit 1a05db3f46
4 changed files with 11 additions and 9 deletions

View File

@ -25,15 +25,16 @@
// Description :
////////////////////////////////////////////////////////////////////
class EXPCL_PANDAEXPRESS AsyncUtility {
PUBLISHED:
INLINE void set_frequency(float frequency);
INLINE float get_frequency(void) const;
public:
AsyncUtility(float frequency = 0.2);
virtual ~AsyncUtility(void);
void create_thread(void);
INLINE void set_frequency(float frequency);
INLINE float get_frequency(void) const;
protected:
void destroy_thread(void);
static void* st_callback(void *arg);

View File

@ -23,7 +23,7 @@ class DecompressorToken;
// Description :
////////////////////////////////////////////////////////////////////
class EXPCL_PANDAEXPRESS Decompressor : public AsyncUtility {
public:
PUBLISHED:
Decompressor(void);
Decompressor(PT(Buffer) buffer);
virtual ~Decompressor(void);

View File

@ -45,8 +45,7 @@ typedef int Version;
typedef int Phase;
class EXPCL_PANDAEXPRESS DownloadDb {
public:
PUBLISHED:
// Status of a multifile is stored in this enum
// Note these values are in increasing order of "doneness"
// So if you are decompressed, you are complete
@ -190,20 +189,22 @@ public:
bool write_header(ofstream &write_stream);
};
PUBLISHED:
Db read_db(Filename &file);
bool write_db(Filename &file, Db db);
public:
// The doenload db stores two databases, one that represents the client's state
// and one that represents the server state
Db _client_db;
Db _server_db;
public:
// Magic number for knowing this is a download Db
static PN_uint32 _magic_number;
typedef vector<HashVal> vectorHash;
typedef map<string, vectorHash> VersionMap;
PUBLISHED:
void add_version(const Filename &name, HashVal hash, Version version);
void add_version(const string &name, HashVal hash, Version version);
int get_version(const Filename &name, HashVal hash);

View File

@ -15,7 +15,7 @@
// Description : A sixteen-byte hash value sent to the crypt library.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDAEXPRESS HashVal {
public:
PUBLISHED:
INLINE HashVal();
INLINE bool operator == (const HashVal &other) const;
INLINE uint get_value(int val) const;