mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
6788d08998
commit
1a05db3f46
@ -25,15 +25,16 @@
|
|||||||
// Description :
|
// Description :
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDAEXPRESS AsyncUtility {
|
class EXPCL_PANDAEXPRESS AsyncUtility {
|
||||||
|
PUBLISHED:
|
||||||
|
INLINE void set_frequency(float frequency);
|
||||||
|
INLINE float get_frequency(void) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AsyncUtility(float frequency = 0.2);
|
AsyncUtility(float frequency = 0.2);
|
||||||
virtual ~AsyncUtility(void);
|
virtual ~AsyncUtility(void);
|
||||||
|
|
||||||
void create_thread(void);
|
void create_thread(void);
|
||||||
|
|
||||||
INLINE void set_frequency(float frequency);
|
|
||||||
INLINE float get_frequency(void) const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void destroy_thread(void);
|
void destroy_thread(void);
|
||||||
static void* st_callback(void *arg);
|
static void* st_callback(void *arg);
|
||||||
|
@ -23,7 +23,7 @@ class DecompressorToken;
|
|||||||
// Description :
|
// Description :
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDAEXPRESS Decompressor : public AsyncUtility {
|
class EXPCL_PANDAEXPRESS Decompressor : public AsyncUtility {
|
||||||
public:
|
PUBLISHED:
|
||||||
Decompressor(void);
|
Decompressor(void);
|
||||||
Decompressor(PT(Buffer) buffer);
|
Decompressor(PT(Buffer) buffer);
|
||||||
virtual ~Decompressor(void);
|
virtual ~Decompressor(void);
|
||||||
|
@ -45,8 +45,7 @@ typedef int Version;
|
|||||||
typedef int Phase;
|
typedef int Phase;
|
||||||
|
|
||||||
class EXPCL_PANDAEXPRESS DownloadDb {
|
class EXPCL_PANDAEXPRESS DownloadDb {
|
||||||
public:
|
PUBLISHED:
|
||||||
|
|
||||||
// Status of a multifile is stored in this enum
|
// Status of a multifile is stored in this enum
|
||||||
// Note these values are in increasing order of "doneness"
|
// Note these values are in increasing order of "doneness"
|
||||||
// So if you are decompressed, you are complete
|
// So if you are decompressed, you are complete
|
||||||
@ -190,20 +189,22 @@ public:
|
|||||||
bool write_header(ofstream &write_stream);
|
bool write_header(ofstream &write_stream);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PUBLISHED:
|
||||||
Db read_db(Filename &file);
|
Db read_db(Filename &file);
|
||||||
bool write_db(Filename &file, Db db);
|
bool write_db(Filename &file, Db db);
|
||||||
|
|
||||||
|
public:
|
||||||
// The doenload db stores two databases, one that represents the client's state
|
// The doenload db stores two databases, one that represents the client's state
|
||||||
// and one that represents the server state
|
// and one that represents the server state
|
||||||
Db _client_db;
|
Db _client_db;
|
||||||
Db _server_db;
|
Db _server_db;
|
||||||
|
|
||||||
public:
|
|
||||||
// Magic number for knowing this is a download Db
|
// Magic number for knowing this is a download Db
|
||||||
static PN_uint32 _magic_number;
|
static PN_uint32 _magic_number;
|
||||||
|
|
||||||
typedef vector<HashVal> vectorHash;
|
typedef vector<HashVal> vectorHash;
|
||||||
typedef map<string, vectorHash> VersionMap;
|
typedef map<string, vectorHash> VersionMap;
|
||||||
|
|
||||||
|
PUBLISHED:
|
||||||
void add_version(const Filename &name, HashVal hash, Version version);
|
void add_version(const Filename &name, HashVal hash, Version version);
|
||||||
void add_version(const string &name, HashVal hash, Version version);
|
void add_version(const string &name, HashVal hash, Version version);
|
||||||
int get_version(const Filename &name, HashVal hash);
|
int get_version(const Filename &name, HashVal hash);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// Description : A sixteen-byte hash value sent to the crypt library.
|
// Description : A sixteen-byte hash value sent to the crypt library.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDAEXPRESS HashVal {
|
class EXPCL_PANDAEXPRESS HashVal {
|
||||||
public:
|
PUBLISHED:
|
||||||
INLINE HashVal();
|
INLINE HashVal();
|
||||||
INLINE bool operator == (const HashVal &other) const;
|
INLINE bool operator == (const HashVal &other) const;
|
||||||
INLINE uint get_value(int val) const;
|
INLINE uint get_value(int val) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user