general: Break apart BUILDING_PANDAEXPRESS

This commit is contained in:
Sam Edwards 2018-06-07 16:59:54 -06:00
parent b8bc1bb5e9
commit f1eb811c0e
88 changed files with 170 additions and 156 deletions

View File

@ -39,7 +39,7 @@ class URLSpec;
* on these things internally, but the interface doesn't appear to be public;
* so we might as well wrap the whole thing at the high level.
*/
class EXPCL_PANDAEXPRESS BioPtr : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER BioPtr : public ReferenceCount {
public:
INLINE BioPtr(BIO *bio);
BioPtr(const URLSpec &url);

View File

@ -29,7 +29,7 @@
*
* Seeking is not supported.
*/
class EXPCL_PANDAEXPRESS IBioStream : public ISocketStream {
class EXPCL_PANDA_DOWNLOADER IBioStream : public ISocketStream {
public:
INLINE IBioStream();
INLINE IBioStream(BioPtr *source);
@ -51,7 +51,7 @@ private:
*
* Seeking is not supported.
*/
class EXPCL_PANDAEXPRESS OBioStream : public OSocketStream {
class EXPCL_PANDA_DOWNLOADER OBioStream : public OSocketStream {
public:
INLINE OBioStream();
INLINE OBioStream(BioPtr *source);
@ -69,7 +69,7 @@ private:
* A bi-directional stream object that reads and writes data to an OpenSSL BIO
* object.
*/
class EXPCL_PANDAEXPRESS BioStream : public SocketStream {
class EXPCL_PANDA_DOWNLOADER BioStream : public SocketStream {
public:
INLINE BioStream();
INLINE BioStream(BioPtr *source);

View File

@ -25,7 +25,7 @@
/**
* The streambuf object that implements IBioStream.
*/
class EXPCL_PANDAEXPRESS BioStreamBuf : public std::streambuf {
class EXPCL_PANDA_DOWNLOADER BioStreamBuf : public std::streambuf {
public:
BioStreamBuf();
virtual ~BioStreamBuf();

View File

@ -26,7 +26,7 @@
* A wrapper around an BioStream object to make a reference-counting pointer
* to it.
*/
class EXPCL_PANDAEXPRESS BioStreamPtr : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER BioStreamPtr : public ReferenceCount {
public:
INLINE BioStreamPtr(BioStream *stream);
virtual ~BioStreamPtr();

View File

@ -19,8 +19,8 @@
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEXPRESS)
#error Buildsystem error: BUILDING_PANDAEXPRESS not defined
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_DOWNLOADER)
#error Buildsystem error: BUILDING_PANDA_DOWNLOADER not defined
#endif
ConfigureDef(config_downloader);

View File

@ -24,8 +24,8 @@
#include "configVariableFilename.h"
#include "configVariableList.h"
ConfigureDecl(config_downloader, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
NotifyCategoryDecl(downloader, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
ConfigureDecl(config_downloader, EXPCL_PANDA_DOWNLOADER, EXPTP_PANDA_DOWNLOADER);
NotifyCategoryDecl(downloader, EXPCL_PANDA_DOWNLOADER, EXPTP_PANDA_DOWNLOADER);
extern ConfigVariableInt downloader_byte_rate;
extern ConfigVariableBool download_throttle;
@ -44,9 +44,9 @@ extern ConfigVariableInt http_skip_body_size;
extern ConfigVariableDouble http_idle_timeout;
extern ConfigVariableInt http_max_connect_count;
extern EXPCL_PANDAEXPRESS ConfigVariableInt tcp_header_size;
extern EXPCL_PANDAEXPRESS ConfigVariableBool support_ipv6;
extern EXPCL_PANDA_DOWNLOADER ConfigVariableInt tcp_header_size;
extern EXPCL_PANDA_DOWNLOADER ConfigVariableBool support_ipv6;
extern EXPCL_PANDAEXPRESS void init_libdownloader();
extern EXPCL_PANDA_DOWNLOADER void init_libdownloader();
#endif

View File

@ -26,7 +26,7 @@ class Ramfile;
* This manages run-time decompression of a zlib-compressed stream, as a
* background or foreground task.
*/
class EXPCL_PANDAEXPRESS Decompressor {
class EXPCL_PANDA_DOWNLOADER Decompressor {
PUBLISHED:
Decompressor();
~Decompressor();

View File

@ -27,7 +27,7 @@
* The DocumentSpec may also be used to request a newer document than a
* particular one if available, for instance to refresh a cached document.
*/
class EXPCL_PANDAEXPRESS DocumentSpec {
class EXPCL_PANDA_DOWNLOADER DocumentSpec {
PUBLISHED:
INLINE DocumentSpec();
INLINE DocumentSpec(const std::string &url);

View File

@ -59,7 +59,7 @@ MultifileRecord is a Vector<FileRecord>
* the files on the client system, and another copy for the server,
* representing the files the server has available.
*/
class EXPCL_PANDAEXPRESS DownloadDb {
class EXPCL_PANDA_DOWNLOADER DownloadDb {
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
@ -131,7 +131,7 @@ PUBLISHED:
public:
class EXPCL_PANDAEXPRESS FileRecord : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER FileRecord : public ReferenceCount {
public:
FileRecord();
FileRecord(std::string name);
@ -141,7 +141,7 @@ public:
typedef pvector< PT(FileRecord) > FileRecords;
class EXPCL_PANDAEXPRESS MultifileRecord : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER MultifileRecord : public ReferenceCount {
public:
MultifileRecord();
MultifileRecord(std::string name, Phase phase, int size, int status);
@ -162,7 +162,7 @@ public:
typedef pvector< PT(MultifileRecord) > MultifileRecords;
class EXPCL_PANDAEXPRESS Db {
class EXPCL_PANDA_DOWNLOADER Db {
public:
Db();
void write(std::ostream &out) const;

View File

@ -21,8 +21,8 @@
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS unsigned long check_crc(Filename name);
EXPCL_PANDAEXPRESS unsigned long check_adler(Filename name);
EXPCL_PANDA_DOWNLOADER unsigned long check_crc(Filename name);
EXPCL_PANDA_DOWNLOADER unsigned long check_adler(Filename name);
END_PUBLISH

View File

@ -32,7 +32,7 @@
* Multifile. Call run() whenever you have spare cycles until run() returns
* EU_success.
*/
class EXPCL_PANDAEXPRESS Extractor {
class EXPCL_PANDA_DOWNLOADER Extractor {
PUBLISHED:
Extractor();
~Extractor();

View File

@ -33,7 +33,7 @@ class URLSpec;
* in the past, which can possibly be re-used for future requests to the same
* server.
*/
class EXPCL_PANDAEXPRESS HTTPAuthorization : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER HTTPAuthorization : public ReferenceCount {
public:
typedef pmap<std::string, std::string> Tokens;
typedef pmap<std::string, Tokens> AuthenticationSchemes;

View File

@ -51,7 +51,7 @@ class HTTPClient;
* requested from the same HTTPChannel until the first document has been fully
* retrieved.
*/
class EXPCL_PANDAEXPRESS HTTPChannel : public TypedReferenceCount {
class EXPCL_PANDA_DOWNLOADER HTTPChannel : public TypedReferenceCount {
private:
HTTPChannel(HTTPClient *client);

View File

@ -53,7 +53,7 @@ class HTTPChannel;
* There is a default, global HTTPClient available in
* HTTPClient::get_global_ptr().
*/
class EXPCL_PANDAEXPRESS HTTPClient : public ReferenceCount {
class EXPCL_PANDA_DOWNLOADER HTTPClient : public ReferenceCount {
PUBLISHED:
HTTPClient();
HTTPClient(const HTTPClient &copy);

View File

@ -29,7 +29,7 @@
* A cookie sent from an HTTP server to be stored on the client and returned
* when the path and/or domain matches.
*/
class EXPCL_PANDAEXPRESS HTTPCookie {
class EXPCL_PANDA_DOWNLOADER HTTPCookie {
PUBLISHED:
INLINE HTTPCookie();
INLINE explicit HTTPCookie(const std::string &format, const URLSpec &url);

View File

@ -24,7 +24,7 @@
* conversely, it can accept a time_t value and encode it for output as a
* string.
*/
class EXPCL_PANDAEXPRESS HTTPDate {
class EXPCL_PANDA_DOWNLOADER HTTPDate {
PUBLISHED:
INLINE HTTPDate();
INLINE HTTPDate(time_t time);

View File

@ -21,7 +21,7 @@
* identify a particular version of a document or resource, particularly
* useful for verifying caches.
*/
class EXPCL_PANDAEXPRESS HTTPEntityTag {
class EXPCL_PANDA_DOWNLOADER HTTPEntityTag {
PUBLISHED:
INLINE HTTPEntityTag();
HTTPEntityTag(const std::string &text);

View File

@ -26,7 +26,7 @@
* This class is just used as a namespace wrapper for some of the enumerated
* types used by various classes within the HTTPClient family.
*/
class EXPCL_PANDAEXPRESS HTTPEnum {
class EXPCL_PANDA_DOWNLOADER HTTPEnum {
PUBLISHED:
enum HTTPVersion {
HV_09, // HTTP 0.9 or older

View File

@ -28,7 +28,7 @@ class HTTPChannel;
/**
* The streambuf object that implements IIdentityStream.
*/
class EXPCL_PANDAEXPRESS IdentityStreamBuf : public std::streambuf {
class EXPCL_PANDA_DOWNLOADER IdentityStreamBuf : public std::streambuf {
public:
IdentityStreamBuf();
virtual ~IdentityStreamBuf();

View File

@ -28,7 +28,7 @@
* a disk file or to system logging utilities. It's a very handy thing to set
* Notify to refer to when running in batch mode.
*/
class EXPCL_PANDAEXPRESS MultiplexStream : public std::ostream {
class EXPCL_PANDA_DOWNLOADER MultiplexStream : public std::ostream {
PUBLISHED:
INLINE MultiplexStream();

View File

@ -24,7 +24,7 @@
* Used by MultiplexStream to implement an ostream that sends what is written
* to it to any number of additional sources, like other ostreams.
*/
class EXPCL_PANDAEXPRESS MultiplexStreamBuf : public std::streambuf {
class EXPCL_PANDA_DOWNLOADER MultiplexStreamBuf : public std::streambuf {
public:
MultiplexStreamBuf();
virtual ~MultiplexStreamBuf();

View File

@ -25,7 +25,7 @@
/**
* Applies a patch synchronously
*/
class EXPCL_PANDAEXPRESS Patcher {
class EXPCL_PANDA_DOWNLOADER Patcher {
PUBLISHED:
Patcher();
explicit Patcher(PT(Buffer) buffer);

View File

@ -36,7 +36,7 @@ class HTTPChannel;
* class for both ISocketStream and SocketStream; its purpose is to minimize
* redundant code between them. Do not use it directly.
*/
class EXPCL_PANDAEXPRESS SSReader {
class EXPCL_PANDA_DOWNLOADER SSReader {
public:
SSReader(std::istream *stream);
virtual ~SSReader();
@ -86,7 +86,7 @@ private:
* class for both OSocketStream and SocketStream; its purpose is to minimize
* redundant code between them. Do not use it directly.
*/
class EXPCL_PANDAEXPRESS SSWriter {
class EXPCL_PANDA_DOWNLOADER SSWriter {
public:
SSWriter(std::ostream *stream);
virtual ~SSWriter();
@ -122,7 +122,7 @@ private:
* after an eof condition to check whether the socket has been closed, or
* whether more data may be available later.
*/
class EXPCL_PANDAEXPRESS ISocketStream : public std::istream, public SSReader {
class EXPCL_PANDA_DOWNLOADER ISocketStream : public std::istream, public SSReader {
public:
INLINE ISocketStream(std::streambuf *buf);
virtual ~ISocketStream();
@ -156,7 +156,7 @@ private:
* check whether the socket has been closed, or whether more data may be sent
* later.
*/
class EXPCL_PANDAEXPRESS OSocketStream : public std::ostream, public SSWriter {
class EXPCL_PANDA_DOWNLOADER OSocketStream : public std::ostream, public SSWriter {
public:
INLINE OSocketStream(std::streambuf *buf);
@ -175,7 +175,7 @@ PUBLISHED:
* A base class for iostreams that read and write to a (possibly non-blocking)
* socket.
*/
class EXPCL_PANDAEXPRESS SocketStream : public std::iostream, public SSReader, public SSWriter {
class EXPCL_PANDA_DOWNLOADER SocketStream : public std::iostream, public SSReader, public SSWriter {
public:
INLINE SocketStream(std::streambuf *buf);

View File

@ -24,7 +24,7 @@
* buffer, which can be retrieved and/or set as a string in Python 2 or a
* bytes object in Python 3.
*/
class EXPCL_PANDAEXPRESS StringStream : public std::iostream {
class EXPCL_PANDA_DOWNLOADER StringStream : public std::iostream {
public:
INLINE StringStream(const std::string &source);

View File

@ -22,7 +22,7 @@
* to a memory buffer, whose contents can be appended to or extracted at any
* time by application code.
*/
class EXPCL_PANDAEXPRESS StringStreamBuf : public std::streambuf {
class EXPCL_PANDA_DOWNLOADER StringStreamBuf : public std::streambuf {
public:
StringStreamBuf();
virtual ~StringStreamBuf();

View File

@ -25,7 +25,7 @@ class Filename;
* The URLSpec object is similar to a Filename in that it contains logic to
* identify the various parts of a URL and return (or modify) them separately.
*/
class EXPCL_PANDAEXPRESS URLSpec {
class EXPCL_PANDA_DOWNLOADER URLSpec {
PUBLISHED:
URLSpec();
INLINE URLSpec(const std::string &url, bool server_name_expected = false);

View File

@ -29,7 +29,7 @@ class VirtualFileMountHTTP;
* VirtualFileSystem, allowing models etc. to be loaded directly from a web
* page.
*/
class EXPCL_PANDAEXPRESS VirtualFileHTTP : public VirtualFile {
class EXPCL_PANDA_DOWNLOADER VirtualFileHTTP : public VirtualFile {
public:
VirtualFileHTTP(VirtualFileMountHTTP *mount,
const Filename &local_filename,

View File

@ -28,7 +28,7 @@
/**
* Maps a web page (URL root) into the VirtualFileSystem.
*/
class EXPCL_PANDAEXPRESS VirtualFileMountHTTP : public VirtualFileMount {
class EXPCL_PANDA_DOWNLOADER VirtualFileMountHTTP : public VirtualFileMount {
PUBLISHED:
explicit VirtualFileMountHTTP(const URLSpec &root, HTTPClient *http = HTTPClient::get_global_ptr());
virtual ~VirtualFileMountHTTP();

View File

@ -21,7 +21,7 @@
/**
*
*/
class EXPCL_PANDAEXPRESS Buffer : public ReferenceCount {
class EXPCL_PANDA_EXPRESS Buffer : public ReferenceCount {
public:
Buffer(int size);
~Buffer();

View File

@ -22,7 +22,7 @@
* This is a specific kind of HashGenerator that simply adds up all of the
* ints. Nothing fancy, and pretty quick.
*/
class EXPCL_PANDAEXPRESS ChecksumHashGenerator : public HashGeneratorBase {
class EXPCL_PANDA_EXPRESS ChecksumHashGenerator : public HashGeneratorBase {
public:
INLINE void add_int(long num);
INLINE void add_bool(bool flag);

View File

@ -64,7 +64,7 @@ decompress_string(const string &source) {
* results are written to the dest file, overwriting its contents. The return
* value is bool on success, or false on failure.
*/
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
compress_file(const Filename &source, const Filename &dest, int compression_level) {
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
Filename source_filename = source;
@ -101,7 +101,7 @@ compress_file(const Filename &source, const Filename &dest, int compression_leve
* Note that a decompression error cannot easily be detected, and the output
* may simply be a garbage or truncated string.
*/
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decompress_file(const Filename &source, const Filename &dest) {
Filename source_filename = Filename::binary_filename(source);
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();

View File

@ -22,20 +22,20 @@
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS std::string
EXPCL_PANDA_EXPRESS std::string
compress_string(const std::string &source, int compression_level);
EXPCL_PANDAEXPRESS std::string
EXPCL_PANDA_EXPRESS std::string
decompress_string(const std::string &source);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
compress_file(const Filename &source, const Filename &dest, int compression_level);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decompress_file(const Filename &source, const Filename &dest);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
compress_stream(std::istream &source, std::ostream &dest, int compression_level);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decompress_stream(std::istream &source, std::ostream &dest);
END_PUBLISH

View File

@ -36,8 +36,8 @@
#include "dconfig.h"
#include "streamWrapper.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEXPRESS)
#error Buildsystem error: BUILDING_PANDAEXPRESS not defined
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_EXPRESS)
#error Buildsystem error: BUILDING_PANDA_EXPRESS not defined
#endif
ConfigureDef(config_express);

View File

@ -28,20 +28,20 @@
#include "executionEnvironment.h"
#include "lineStream.h"
ConfigureDecl(config_express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
NotifyCategoryDecl(express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
NotifyCategoryDecl(clock, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
ConfigureDecl(config_express, EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS);
NotifyCategoryDecl(express, EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS);
NotifyCategoryDecl(clock, EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS);
// Actually, we can't determine this config variable the normal way, because
// we must be able to access it at static init time. Instead of declaring it
// a global constant, we'll make it a member of MemoryUsage.
// extern EXPCL_PANDAEXPRESS const bool track_memory_usage;
// extern EXPCL_PANDA_EXPRESS const bool track_memory_usage;
EXPCL_PANDAEXPRESS bool get_use_high_res_clock();
EXPCL_PANDAEXPRESS bool get_paranoid_clock();
EXPCL_PANDAEXPRESS bool get_paranoid_inheritance();
EXPCL_PANDAEXPRESS bool get_verify_dcast();
EXPCL_PANDA_EXPRESS bool get_use_high_res_clock();
EXPCL_PANDA_EXPRESS bool get_paranoid_clock();
EXPCL_PANDA_EXPRESS bool get_paranoid_inheritance();
EXPCL_PANDA_EXPRESS bool get_verify_dcast();
extern ConfigVariableInt patchfile_window_size;
extern ConfigVariableInt patchfile_increment_size;
@ -51,14 +51,14 @@ extern ConfigVariableInt patchfile_zone_size;
extern ConfigVariableBool keep_temporary_files;
extern ConfigVariableBool multifile_always_binary;
extern EXPCL_PANDAEXPRESS ConfigVariableBool collect_tcp;
extern EXPCL_PANDAEXPRESS ConfigVariableDouble collect_tcp_interval;
extern EXPCL_PANDA_EXPRESS ConfigVariableBool collect_tcp;
extern EXPCL_PANDA_EXPRESS ConfigVariableDouble collect_tcp_interval;
// Expose the Config variable for Python access.
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS DConfig &get_config_express();
EXPCL_PANDA_EXPRESS DConfig &get_config_express();
END_PUBLISH
extern EXPCL_PANDAEXPRESS void init_libexpress();
extern EXPCL_PANDA_EXPRESS void init_libexpress();
#endif /* __CONFIG_UTIL_H__ */

View File

@ -17,7 +17,7 @@
#include "pandabase.h"
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
copy_stream(std::istream &source, std::ostream &dest);
END_PUBLISH

View File

@ -35,7 +35,7 @@
* A Datagram is itself headerless; it is simply a collection of data
* elements.
*/
class EXPCL_PANDAEXPRESS Datagram : public TypedObject {
class EXPCL_PANDA_EXPRESS Datagram : public TypedObject {
PUBLISHED:
INLINE Datagram();
INLINE Datagram(const void *data, size_t size);

View File

@ -27,7 +27,7 @@ class VirtualFile;
* This class defines the abstract interace to any source of datagrams,
* whether it be from a file or from the net.
*/
class EXPCL_PANDAEXPRESS DatagramGenerator {
class EXPCL_PANDA_EXPRESS DatagramGenerator {
PUBLISHED:
INLINE DatagramGenerator();
virtual ~DatagramGenerator();

View File

@ -24,7 +24,7 @@
* Datagram. Elements may be retrieved one at a time; it is up to the caller
* to know the correct type and order of each element.
*/
class EXPCL_PANDAEXPRESS DatagramIterator {
class EXPCL_PANDA_EXPRESS DatagramIterator {
public:
INLINE void assign(Datagram &datagram, size_t offset = 0);

View File

@ -26,7 +26,7 @@ class Filename;
* This class defines the abstract interface to sending datagrams to any
* target, whether it be into a file or across the net
*/
class EXPCL_PANDAEXPRESS DatagramSink {
class EXPCL_PANDA_EXPRESS DatagramSink {
PUBLISHED:
INLINE DatagramSink();
virtual ~DatagramSink();

View File

@ -64,7 +64,7 @@ INLINE const WantType *_dcast_ref(WantType *&, const TypedObject *ptr);
#ifdef DO_DCAST
// _dcast_verify performs the actual verification.
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
_dcast_verify(TypeHandle want_handle, size_t want_size,
const TypedObject *ptr);
#endif // DO_DCAST

View File

@ -75,7 +75,7 @@ decrypt_string(const string &source, const string &password) {
* to the dest file, overwriting its contents. The return value is bool on
* success, or false on failure.
*/
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
encrypt_file(const Filename &source, const Filename &dest, const string &password,
const string &algorithm, int key_length, int iteration_count) {
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
@ -115,7 +115,7 @@ encrypt_file(const Filename &source, const Filename &dest, const string &passwor
* Note that a decryption error, including an incorrect password, cannot
* easily be detected, and the output may simply be a garbage string.
*/
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decrypt_file(const Filename &source, const Filename &dest, const string &password) {
Filename source_filename = Filename::binary_filename(source);
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();

View File

@ -22,25 +22,25 @@
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS std::string
EXPCL_PANDA_EXPRESS std::string
encrypt_string(const std::string &source, const std::string &password,
const std::string &algorithm = std::string(), int key_length = -1,
int iteration_count = -1);
EXPCL_PANDAEXPRESS std::string
EXPCL_PANDA_EXPRESS std::string
decrypt_string(const std::string &source, const std::string &password);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
encrypt_file(const Filename &source, const Filename &dest, const std::string &password,
const std::string &algorithm = std::string(), int key_length = -1,
int iteration_count = -1);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decrypt_file(const Filename &source, const Filename &dest, const std::string &password);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
encrypt_stream(std::istream &source, std::ostream &dest, const std::string &password,
const std::string &algorithm = std::string(), int key_length = -1,
int iteration_count = -1);
EXPCL_PANDAEXPRESS bool
EXPCL_PANDA_EXPRESS bool
decrypt_stream(std::istream &source, std::ostream &dest, const std::string &password);
END_PUBLISH

View File

@ -74,12 +74,12 @@ enum ErrorUtilCode {
EU_error_zlib = -80,
};
EXPCL_PANDAEXPRESS std::string error_to_text(ErrorUtilCode err);
EXPCL_PANDAEXPRESS int get_write_error();
EXPCL_PANDA_EXPRESS std::string error_to_text(ErrorUtilCode err);
EXPCL_PANDA_EXPRESS int get_write_error();
#ifdef HAVE_NET
EXPCL_PANDAEXPRESS std::string handle_socket_error();
EXPCL_PANDAEXPRESS int get_network_error();
EXPCL_PANDA_EXPRESS std::string handle_socket_error();
EXPCL_PANDA_EXPRESS int get_network_error();
#endif
END_PUBLISH

View File

@ -23,7 +23,7 @@
* Keeps a reference-counted pointer to a file on disk. As long as the
* FileReference is held, someone presumably has a use for this file.
*/
class EXPCL_PANDAEXPRESS FileReference : public TypedReferenceCount {
class EXPCL_PANDA_EXPRESS FileReference : public TypedReferenceCount {
PUBLISHED:
INLINE FileReference(const Filename &filename);
INLINE const Filename &get_filename() const;

View File

@ -27,7 +27,7 @@
* Thus, a compile-time decision must be made for the kind of HashGenerator
* that is appropriate for a particular class.
*/
class EXPCL_PANDAEXPRESS HashGeneratorBase {
class EXPCL_PANDA_EXPRESS HashGeneratorBase {
public:
INLINE HashGeneratorBase();

View File

@ -27,7 +27,7 @@
* Stores a 128-bit value that represents the hashed contents (typically MD5)
* of a file or buffer.
*/
class EXPCL_PANDAEXPRESS HashVal {
class EXPCL_PANDA_EXPRESS HashVal {
PUBLISHED:
INLINE HashVal();
INLINE HashVal(const HashVal &copy);

View File

@ -32,7 +32,7 @@ class MemoryUsagePointers;
* When compiled with NDEBUG set, this entire class does nothing and compiles
* to a stub.
*/
class EXPCL_PANDAEXPRESS MemoryUsage : public MemoryHook {
class EXPCL_PANDA_EXPRESS MemoryUsage : public MemoryHook {
public:
ALWAYS_INLINE static bool get_track_memory_usage();

View File

@ -35,7 +35,7 @@
* This class is just a user interface to talk about pointers stored in a
* MemoryUsage object. It doesn't even exist when compiled with NDEBUG.
*/
class EXPCL_PANDAEXPRESS MemoryUsagePointers {
class EXPCL_PANDA_EXPRESS MemoryUsagePointers {
PUBLISHED:
MemoryUsagePointers();
~MemoryUsagePointers();

View File

@ -34,7 +34,7 @@ typedef struct evp_pkey_st EVP_PKEY;
/**
* A file that contains a set of files.
*/
class EXPCL_PANDAEXPRESS Multifile : public ReferenceCount {
class EXPCL_PANDA_EXPRESS Multifile : public ReferenceCount {
PUBLISHED:
Multifile();
Multifile(const Multifile &copy) = delete;

View File

@ -23,7 +23,7 @@
* A base class for all things which can have a name. The name is either
* empty or nonempty, but it is never NULL.
*/
class EXPCL_PANDAEXPRESS Namable : public MemoryBase {
class EXPCL_PANDA_EXPRESS Namable : public MemoryBase {
PUBLISHED:
INLINE explicit Namable(const std::string &initial_name = "");

View File

@ -30,7 +30,7 @@
* See also CachedTypedWritableReferenceCount, which is similar in principle,
* as well as NodeCachedReferenceCount, which combines both of these.
*/
class EXPCL_PANDAEXPRESS NodeReferenceCount : public ReferenceCount {
class EXPCL_PANDA_EXPRESS NodeReferenceCount : public ReferenceCount {
protected:
INLINE NodeReferenceCount();
INLINE NodeReferenceCount(const NodeReferenceCount &copy);

View File

@ -43,7 +43,7 @@
* the library is properly initialized in the application, and to provide some
* hooks into global OpenSSL context data.
*/
class EXPCL_PANDAEXPRESS OpenSSLWrapper {
class EXPCL_PANDA_EXPRESS OpenSSLWrapper {
private:
OpenSSLWrapper();
~OpenSSLWrapper();

View File

@ -25,7 +25,7 @@
* This is subclassed as PStatCollectorForward, which defines the actual
* functionality.
*/
class EXPCL_PANDAEXPRESS PStatCollectorForwardBase : public ReferenceCount {
class EXPCL_PANDA_EXPRESS PStatCollectorForwardBase : public ReferenceCount {
PUBLISHED:
#ifdef DO_PSTATS
virtual ~PStatCollectorForwardBase();

View File

@ -22,9 +22,9 @@
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS std::string password_hash(const std::string &password,
const std::string &salt,
int iters, int keylen);
EXPCL_PANDA_EXPRESS std::string password_hash(const std::string &password,
const std::string &salt,
int iters, int keylen);
END_PUBLISH

View File

@ -36,7 +36,7 @@
/**
*
*/
class EXPCL_PANDAEXPRESS Patchfile {
class EXPCL_PANDA_EXPRESS Patchfile {
PUBLISHED:
Patchfile();
explicit Patchfile(PT(Buffer) buffer);

View File

@ -13,4 +13,4 @@
#include "pointerToArrayBase.h"
EXPCL_PANDAEXPRESS PTASetLevelFunc *pta_set_level = nullptr;
EXPCL_PANDA_EXPRESS PTASetLevelFunc *pta_set_level = nullptr;

View File

@ -30,7 +30,7 @@
*
* This is the base class for PointerToBase<T>.
*/
class EXPCL_PANDAEXPRESS PointerToVoid : public MemoryBase {
class EXPCL_PANDA_EXPRESS PointerToVoid : public MemoryBase {
protected:
constexpr PointerToVoid() noexcept;
//INLINE ~PointerToVoid();

View File

@ -16,7 +16,7 @@
// See ProfileTimer.h for documentation.
EXPCL_PANDAEXPRESS ProfileTimer Skyler_timer_global=ProfileTimer("startup");
EXPCL_PANDA_EXPRESS ProfileTimer Skyler_timer_global=ProfileTimer("startup");
ProfileTimer* ProfileTimer::_head;

View File

@ -37,7 +37,7 @@
seconds of each other, I don't think you'll get very good
results.
*/
class EXPCL_PANDAEXPRESS ProfileTimer {
class EXPCL_PANDA_EXPRESS ProfileTimer {
enum { MaxEntriesDefault=4096 };
PUBLISHED:
explicit ProfileTimer(const char* name=0, int maxEntries=MaxEntriesDefault);
@ -67,7 +67,7 @@ public:
...
}
*/
class EXPCL_PANDAEXPRESS AutoTimer {
class EXPCL_PANDA_EXPRESS AutoTimer {
public:
AutoTimer(ProfileTimer& profile, const char* tag);
~AutoTimer();

View File

@ -26,10 +26,10 @@
* defining the pta again.
*/
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase<ReferenceCountedVector<double> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase<double>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray<double>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray<double>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase<ReferenceCountedVector<double> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArrayBase<double>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArray<double>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, ConstPointerToArray<double>)
typedef PointerToArray<double> PTA_double;
typedef ConstPointerToArray<double> CPTA_double;

View File

@ -26,10 +26,10 @@
* defining the pta again.
*/
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase<ReferenceCountedVector<float> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase<float>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray<float>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray<float>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase<ReferenceCountedVector<float> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArrayBase<float>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArray<float>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, ConstPointerToArray<float>)
typedef PointerToArray<float> PTA_float;
typedef ConstPointerToArray<float> CPTA_float;

View File

@ -26,10 +26,10 @@
* pta again.
*/
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase<ReferenceCountedVector<int> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase<int>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray<int>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray<int>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase<ReferenceCountedVector<int> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArrayBase<int>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArray<int>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, ConstPointerToArray<int>)
typedef PointerToArray<int> PTA_int;
typedef ConstPointerToArray<int> CPTA_int;

View File

@ -21,7 +21,7 @@
/**
* A pta of uchars. This class is defined once here, and exported to
* PANDAEXPRESS.DLL; other packages that want to use a pta of this type
* PANDA_EXPRESS.DLL; other packages that want to use a pta of this type
* (whether they need to export it or not) should include this header file,
* rather than defining the pta again.
*/
@ -29,10 +29,10 @@
#if !defined(__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7
// GCC 4.6 has a weird bug related to this type.
#else
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase<ReferenceCountedVector<uchar> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase<uchar>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray<unsigned char>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray<unsigned char>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase<ReferenceCountedVector<uchar> >)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArrayBase<uchar>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArray<unsigned char>)
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, ConstPointerToArray<unsigned char>)
#endif
typedef PointerToArray<unsigned char> PTA_uchar;

View File

@ -22,7 +22,7 @@
/**
* An in-memory buffer specifically designed for downloading files to memory.
*/
class EXPCL_PANDAEXPRESS Ramfile {
class EXPCL_PANDA_EXPRESS Ramfile {
PUBLISHED:
INLINE Ramfile();

View File

@ -35,7 +35,7 @@
* ReferenceCount works in conjunction with PointerTo to automatically delete
* objects when the last pointer to them goes away.
*/
class EXPCL_PANDAEXPRESS ReferenceCount : public MemoryBase {
class EXPCL_PANDA_EXPRESS ReferenceCount : public MemoryBase {
protected:
INLINE ReferenceCount();
INLINE ReferenceCount(const ReferenceCount &);

View File

@ -27,7 +27,7 @@
* The source stream must be one that we can randomly seek within. The
* resulting ISubStream will also support arbitrary seeks.
*/
class EXPCL_PANDAEXPRESS ISubStream : public std::istream {
class EXPCL_PANDA_EXPRESS ISubStream : public std::istream {
PUBLISHED:
INLINE ISubStream();
INLINE explicit ISubStream(IStreamWrapper *source, std::streampos start, std::streampos end);
@ -52,7 +52,7 @@ private:
* The dest stream must be one that we can randomly seek within. The
* resulting OSubStream will also support arbitrary seeks.
*/
class EXPCL_PANDAEXPRESS OSubStream : public std::ostream {
class EXPCL_PANDA_EXPRESS OSubStream : public std::ostream {
PUBLISHED:
INLINE OSubStream();
INLINE explicit OSubStream(OStreamWrapper *dest, std::streampos start, std::streampos end, bool append = false);
@ -71,7 +71,7 @@ private:
/**
* Combined ISubStream and OSubStream for bidirectional I/O.
*/
class EXPCL_PANDAEXPRESS SubStream : public std::iostream {
class EXPCL_PANDA_EXPRESS SubStream : public std::iostream {
PUBLISHED:
INLINE SubStream();
INLINE explicit SubStream(StreamWrapper *nested, std::streampos start, std::streampos end, bool append = false);

View File

@ -20,7 +20,7 @@
/**
* The streambuf object that implements ISubStream.
*/
class EXPCL_PANDAEXPRESS SubStreamBuf : public std::streambuf {
class EXPCL_PANDA_EXPRESS SubStreamBuf : public std::streambuf {
public:
SubStreamBuf();
virtual ~SubStreamBuf();

View File

@ -23,7 +23,7 @@
* disk. Generally, the filename is understood as a physical file on disk,
* and not to be looked up via the vfs.
*/
class EXPCL_PANDAEXPRESS SubfileInfo {
class EXPCL_PANDA_EXPRESS SubfileInfo {
PUBLISHED:
INLINE SubfileInfo();
INLINE explicit SubfileInfo(const FileReference *file, std::streampos start, std::streamsize size);

View File

@ -23,7 +23,7 @@
* the file in question when it is deleted. It is not responsible for
* creating, opening, or closing the file, however.
*/
class EXPCL_PANDAEXPRESS TemporaryFile : public FileReference {
class EXPCL_PANDA_EXPRESS TemporaryFile : public FileReference {
PUBLISHED:
INLINE explicit TemporaryFile(const Filename &filename);
virtual ~TemporaryFile();

View File

@ -30,7 +30,7 @@
* zero, this value can only be meaningfully used to measure elapsed time, by
* sampling it at two different times and subtracting.
*/
class EXPCL_PANDAEXPRESS TrueClock {
class EXPCL_PANDA_EXPRESS TrueClock {
PUBLISHED:
// get_long_time() returns the most accurate timer we have over a long
// interval. It may not be very precise for measuring short intervals, but

View File

@ -28,7 +28,7 @@
*
* See also TypedObject for detailed instructions.
*/
class EXPCL_PANDAEXPRESS TypedReferenceCount : public TypedObject, public ReferenceCount {
class EXPCL_PANDA_EXPRESS TypedReferenceCount : public TypedObject, public ReferenceCount {
public:
INLINE TypedReferenceCount();
INLINE TypedReferenceCount(const TypedReferenceCount &copy);

View File

@ -32,7 +32,7 @@ class VirtualFileSystem;
* The abstract base class for a file or directory within the
* VirtualFileSystem.
*/
class EXPCL_PANDAEXPRESS VirtualFile : public TypedReferenceCount {
class EXPCL_PANDA_EXPRESS VirtualFile : public TypedReferenceCount {
public:
INLINE VirtualFile();

View File

@ -23,7 +23,7 @@
* one directory on different mount points. The resulting directory appears
* to be the union of all the individual simple directories.
*/
class EXPCL_PANDAEXPRESS VirtualFileComposite : public VirtualFile {
class EXPCL_PANDA_EXPRESS VirtualFileComposite : public VirtualFile {
public:
INLINE VirtualFileComposite(VirtualFileSystem *file_system,
const Filename &filename);

View File

@ -22,7 +22,7 @@
/**
* A list of VirtualFiles, as returned by VirtualFile::scan_directory().
*/
class EXPCL_PANDAEXPRESS VirtualFileList : public ReferenceCount {
class EXPCL_PANDA_EXPRESS VirtualFileList : public ReferenceCount {
public:
INLINE VirtualFileList();

View File

@ -28,7 +28,7 @@ class VirtualFileSystem;
* VirtualFileSystem. Normally users don't need to monkey with this class
* directly.
*/
class EXPCL_PANDAEXPRESS VirtualFileMount : public TypedReferenceCount {
class EXPCL_PANDA_EXPRESS VirtualFileMount : public TypedReferenceCount {
PUBLISHED:
INLINE VirtualFileMount();
virtual ~VirtualFileMount();

View File

@ -27,7 +27,7 @@
/**
* Maps a Multifile's contents into the VirtualFileSystem.
*/
class EXPCL_PANDAEXPRESS VirtualFileMountAndroidAsset : public VirtualFileMount {
class EXPCL_PANDA_EXPRESS VirtualFileMountAndroidAsset : public VirtualFileMount {
PUBLISHED:
INLINE VirtualFileMountAndroidAsset(AAssetManager *mgr, const std::string &apk_path);
virtual ~VirtualFileMountAndroidAsset();

View File

@ -23,7 +23,7 @@
/**
* Maps a Multifile's contents into the VirtualFileSystem.
*/
class EXPCL_PANDAEXPRESS VirtualFileMountMultifile : public VirtualFileMount {
class EXPCL_PANDA_EXPRESS VirtualFileMountMultifile : public VirtualFileMount {
PUBLISHED:
INLINE VirtualFileMountMultifile(Multifile *multifile);
virtual ~VirtualFileMountMultifile();

View File

@ -27,7 +27,7 @@
* limits to the size of the files that may be written with this system; and
* "files" written here are not automatically persistent between sessions.
*/
class EXPCL_PANDAEXPRESS VirtualFileMountRamdisk : public VirtualFileMount {
class EXPCL_PANDA_EXPRESS VirtualFileMountRamdisk : public VirtualFileMount {
PUBLISHED:
VirtualFileMountRamdisk();

View File

@ -21,7 +21,7 @@
/**
* Maps an actual OS directory into the VirtualFileSystem.
*/
class EXPCL_PANDAEXPRESS VirtualFileMountSystem : public VirtualFileMount {
class EXPCL_PANDA_EXPRESS VirtualFileMountSystem : public VirtualFileMount {
PUBLISHED:
INLINE VirtualFileMountSystem(const Filename &physical_filename);

View File

@ -23,7 +23,7 @@
* exactly one file on one mount point. Most directories, and all regular
* files, are of this kind.
*/
class EXPCL_PANDAEXPRESS VirtualFileSimple : public VirtualFile {
class EXPCL_PANDA_EXPRESS VirtualFileSimple : public VirtualFile {
public:
INLINE VirtualFileSimple(VirtualFileMount *mount,
const Filename &local_filename,

View File

@ -37,7 +37,7 @@ class VirtualFileComposite;
* For instance, a VirtualFileSystem can transparently mount one or more
* Multifiles as their own subdirectory hierarchies.
*/
class EXPCL_PANDAEXPRESS VirtualFileSystem {
class EXPCL_PANDA_EXPRESS VirtualFileSystem {
PUBLISHED:
VirtualFileSystem();
~VirtualFileSystem();

View File

@ -21,7 +21,7 @@
* get an immediate callback from a WeakPointerTo object when its referenced
* pointer is deleted.
*/
class EXPCL_PANDAEXPRESS WeakPointerCallback {
class EXPCL_PANDA_EXPRESS WeakPointerCallback {
public:
virtual ~WeakPointerCallback();
virtual void wp_callback(void *pointer)=0;

View File

@ -23,7 +23,7 @@
* This is the specialization of PointerToVoid for weak pointers. It needs an
* additional flag to indicate that the pointer has been deleted.
*/
class EXPCL_PANDAEXPRESS WeakPointerToVoid : public PointerToVoid {
class EXPCL_PANDA_EXPRESS WeakPointerToVoid : public PointerToVoid {
protected:
INLINE WeakPointerToVoid();

View File

@ -26,7 +26,7 @@ class WeakPointerCallback;
* object is created, and can outlive the object until all weak references
* have disappeared.
*/
class EXPCL_PANDAEXPRESS WeakReferenceList {
class EXPCL_PANDA_EXPRESS WeakReferenceList {
public:
WeakReferenceList();
~WeakReferenceList();

View File

@ -25,7 +25,7 @@
* encoding and stores them in Unicode (and conversely reconverts them on
* retrieval).
*/
class EXPCL_PANDAEXPRESS WindowsRegistry
class EXPCL_PANDA_EXPRESS WindowsRegistry
{
PUBLISHED:
enum RegLevel {

View File

@ -31,7 +31,7 @@
*
* Seeking is not supported.
*/
class EXPCL_PANDAEXPRESS IDecompressStream : public std::istream {
class EXPCL_PANDA_EXPRESS IDecompressStream : public std::istream {
PUBLISHED:
INLINE IDecompressStream();
INLINE explicit IDecompressStream(std::istream *source, bool owns_source);
@ -57,7 +57,7 @@ private:
*
* Seeking is not supported.
*/
class EXPCL_PANDAEXPRESS OCompressStream : public std::ostream {
class EXPCL_PANDA_EXPRESS OCompressStream : public std::ostream {
PUBLISHED:
INLINE OCompressStream();
INLINE explicit OCompressStream(std::ostream *dest, bool owns_dest,

View File

@ -24,7 +24,7 @@
/**
* The streambuf object that implements IDecompressStream and OCompressStream.
*/
class EXPCL_PANDAEXPRESS ZStreamBuf : public std::streambuf {
class EXPCL_PANDA_DOWNLOADER ZStreamBuf : public std::streambuf {
public:
ZStreamBuf();
virtual ~ZStreamBuf();

View File

@ -105,6 +105,12 @@
#define BUILDING_PANDA_TFORM
#endif
/* BUILDING_PANDAEXPRESS for these: */
#ifdef BUILDING_PANDAEXPRESS
#define BUILDING_PANDA_DOWNLOADER
#define BUILDING_PANDA_EXPRESS
#endif
#ifdef BUILDING_LIBPANDA
#define EXPCL_LIBPANDA EXPORT_CLASS
#define EXPTP_LIBPANDA EXPORT_TEMPL
@ -177,6 +183,14 @@
#define EXPTP_PANDA_DISPLAY IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDA_DOWNLOADER
#define EXPCL_PANDA_DOWNLOADER EXPORT_CLASS
#define EXPTP_PANDA_DOWNLOADER EXPORT_TEMPL
#else
#define EXPCL_PANDA_DOWNLOADER IMPORT_CLASS
#define EXPTP_PANDA_DOWNLOADER IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDA_DXML
#define EXPCL_PANDA_DXML EXPORT_CLASS
#define EXPTP_PANDA_DXML EXPORT_TEMPL
@ -193,6 +207,14 @@
#define EXPTP_PANDA_EVENT IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDA_EXPRESS
#define EXPCL_PANDA_EXPRESS EXPORT_CLASS
#define EXPTP_PANDA_EXPRESS EXPORT_TEMPL
#else
#define EXPCL_PANDA_EXPRESS IMPORT_CLASS
#define EXPTP_PANDA_EXPRESS IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDA_GOBJ
#define EXPCL_PANDA_GOBJ EXPORT_CLASS
#define EXPTP_PANDA_GOBJ EXPORT_TEMPL
@ -393,14 +415,6 @@
#define EXPTP_PANDAEGG IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDAEXPRESS
#define EXPCL_PANDAEXPRESS EXPORT_CLASS
#define EXPTP_PANDAEXPRESS EXPORT_TEMPL
#else
#define EXPCL_PANDAEXPRESS IMPORT_CLASS
#define EXPTP_PANDAEXPRESS IMPORT_TEMPL
#endif
#ifdef BUILDING_PANDAFX
#define EXPCL_PANDAFX EXPORT_CLASS
#define EXPTP_PANDAFX EXPORT_TEMPL