Browse Source

Trade: make it possible to call default doOpenFile() implementation.

pull/94/head
Vladimír Vondruš 11 years ago
parent
commit
f1a3602cb3
  1. 19
      src/Magnum/Trade/AbstractImporter.h

19
src/Magnum/Trade/AbstractImporter.h

@ -471,6 +471,17 @@ class MAGNUM_EXPORT AbstractImporter: public PluginManager::AbstractManagingPlug
/*@}*/
protected:
/**
* @brief Implementation for @ref openFile()
*
* If @ref Feature::OpenData is supported, default implementation opens
* the file and calls @ref doOpenData() with its contents. It is
* allowed to call this function from your @ref doOpenFile()
* implementation.
*/
virtual void doOpenFile(const std::string& filename);
#ifndef DOXYGEN_GENERATING_OUTPUT
private:
#else
@ -485,14 +496,6 @@ class MAGNUM_EXPORT AbstractImporter: public PluginManager::AbstractManagingPlug
/** @brief Implementation for @ref openData() */
virtual void doOpenData(Containers::ArrayReference<const char> data);
/**
* @brief Implementation for @ref openFile()
*
* If @ref Feature::OpenData is supported, default implementation opens
* the file and calls @ref doOpenData() with its contents.
*/
virtual void doOpenFile(const std::string& filename);
/** @brief Implementation for @ref close() */
virtual void doClose() = 0;

Loading…
Cancel
Save