X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgbase%2Fimage.h;h=aec1b0dc15ffb1be598e9d67b0beb38279cc17c9;hb=7d2b4349289578b8e7f322186a1f251684ddeb01;hp=da04b1851f266cb9e9550fa29dee672245a4b4ff;hpb=aeb2546fc11a7e27a02a47e85756746330253742;p=libs%2Fgui.git diff --git a/source/gbase/image.h b/source/gbase/image.h index da04b18..aec1b0d 100644 --- a/source/gbase/image.h +++ b/source/gbase/image.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgbase -Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GBASE_IMAGE_H_ #define MSP_GBASE_IMAGE_H_ @@ -14,10 +7,28 @@ Distributed under the LGPL namespace Msp { namespace Graphics { +class unsupported_image_format: public std::runtime_error +{ +public: + unsupported_image_format(const std::string &w): std::runtime_error(w) { } + virtual ~unsupported_image_format() throw() { } +}; + +class bad_image_data: public std::runtime_error +{ +public: + bad_image_data(const std::string &w): std::runtime_error(w) { } + virtual ~bad_image_data() throw() { } +}; + + class Image { +public: + struct Private; + private: - unsigned id; + Private *priv; public: Image();