mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
*** empty log message ***
This commit is contained in:
parent
6788d08998
commit
1a05db3f46
@ -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);
|
||||
|
@ -23,7 +23,7 @@ class DecompressorToken;
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDAEXPRESS Decompressor : public AsyncUtility {
|
||||
public:
|
||||
PUBLISHED:
|
||||
Decompressor(void);
|
||||
Decompressor(PT(Buffer) buffer);
|
||||
virtual ~Decompressor(void);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user