diff options
author | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2017-12-06 23:47:39 +0000 |
---|---|---|
committer | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2017-12-06 23:47:39 +0000 |
commit | c886922cc0b8c32ead0459b581f51ff60fdebbd4 (patch) | |
tree | 98c9b3036116ebfefde32c8c278639b767e2d305 /Gem/develop/include/Gem/plugins/imageloader.h | |
parent | ff954ec3b2de3f0bce8aee70680469468896df7d (diff) |
Gem 427a3d0e61d61e64e76facfa905c120356383bab osx/x86_64
built 'master:427a3d0e61d61e64e76facfa905c120356383bab' for osx/x86_64
Diffstat (limited to 'Gem/develop/include/Gem/plugins/imageloader.h')
-rw-r--r-- | Gem/develop/include/Gem/plugins/imageloader.h | 66 |
1 files changed, 35 insertions, 31 deletions
diff --git a/Gem/develop/include/Gem/plugins/imageloader.h b/Gem/develop/include/Gem/plugins/imageloader.h index 9fe904d..22bc5a7 100644 --- a/Gem/develop/include/Gem/plugins/imageloader.h +++ b/Gem/develop/include/Gem/plugins/imageloader.h @@ -31,36 +31,40 @@ WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. DESCRIPTION -----------------------------------------------------------------*/ -namespace gem { namespace plugins { - class GEM_EXTERN imageloader - { - public: - - ////////// - // returns an instance wrapping all plugins or NULL - // if NULL is returned, you might still try your luck with manually accessing the - // PluginFactory - static imageloader*getInstance(void); - - //////// - // dtor must be virtual - virtual ~imageloader(void); - - /* read a image - * - * props can be filled by the loader with additional information on the image - * e.g. EXIF tags,... - */ - /* returns TRUE if loading was successful, FALSE otherwise */ - virtual bool load(std::string filename, - imageStruct&result, - gem::Properties&props) = 0; - - /* returns TRUE if this object can be used from within a thread */ - virtual bool isThreadable(void) = 0; - }; - - };}; // namespace gem +namespace gem +{ +namespace plugins +{ +class GEM_EXTERN imageloader +{ +public: + + ////////// + // returns an instance wrapping all plugins or NULL + // if NULL is returned, you might still try your luck with manually accessing the + // PluginFactory + static imageloader*getInstance(void); + + //////// + // dtor must be virtual + virtual ~imageloader(void); + + /* read a image + * + * props can be filled by the loader with additional information on the image + * e.g. EXIF tags,... + */ + /* returns TRUE if loading was successful, FALSE otherwise */ + virtual bool load(std::string filename, + imageStruct&result, + gem::Properties&props) = 0; + + /* returns TRUE if this object can be used from within a thread */ + virtual bool isThreadable(void) = 0; +}; + +}; +}; // namespace gem /** @@ -72,4 +76,4 @@ namespace gem { namespace plugins { */ #define REGISTER_IMAGELOADERFACTORY(id, TYP) static gem::PluginFactoryRegistrar::registrar<TYP, gem::plugins::imageloader> fac_imageloader_ ## TYP (id) -#endif // for header file +#endif // for header file |