diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-08-06 21:00:25 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-08-06 21:00:25 +0200 |
commit | 1e74c03acd39c000103b843d5acd3c0313da443a (patch) | |
tree | c603b2c2bb95b46bc129a0c28e6f87c0bd84428a /libqpdf/QEXC.cc | |
parent | ed13d9074ef79847a10cfcfca32963c0883a2eb5 (diff) | |
download | qpdf-1e74c03acd39c000103b843d5acd3c0313da443a.tar.zst |
stick DLL_EXPORT in front of every public method of every public class
git-svn-id: svn+q:///qpdf/trunk@688 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QEXC.cc')
-rw-r--r-- | libqpdf/QEXC.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libqpdf/QEXC.cc b/libqpdf/QEXC.cc index c65afbb6..d8154f33 100644 --- a/libqpdf/QEXC.cc +++ b/libqpdf/QEXC.cc @@ -3,29 +3,34 @@ #include <string.h> #include <errno.h> +DLL_EXPORT QEXC::Base::Base() { // nothing needed } +DLL_EXPORT QEXC::Base::Base(std::string const& message) : message(message) { // nothing needed } +DLL_EXPORT std::string const& QEXC::Base::unparse() const { return this->message; } +DLL_EXPORT void QEXC::Base::setMessage(std::string const& message) { this->message = message; } +DLL_EXPORT const char* QEXC::Base::what() const throw() { @@ -36,17 +41,20 @@ QEXC::Base::what() const throw() return this->unparse().c_str(); } +DLL_EXPORT QEXC::General::General() { // nothing needed } +DLL_EXPORT QEXC::General::General(std::string const& message) : Base(message) { // nothing needed } +DLL_EXPORT QEXC::System::System(std::string const& prefix, int sys_errno) { // Note: using sys_errno in case errno is a macro. @@ -54,12 +62,14 @@ QEXC::System::System(std::string const& prefix, int sys_errno) this->setMessage(prefix + ": " + strerror(sys_errno)); } +DLL_EXPORT int QEXC::System::getErrno() const { return this->sys_errno; } +DLL_EXPORT QEXC::Internal::Internal(std::string const& message) : Base("INTERNAL ERROR: " + message) { |