Magnum/Trade/AbstractImporter.h file

Class Magnum::Trade::AbstractImporter, enum Magnum::Trade::ImporterFeature, enum set Magnum::Trade::ImporterFeatures.

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Trade
Data format exchange.

Classes

class Magnum::Trade::AbstractImporter
Base for importer plugins.

Enums

enum class ImporterFeature: UnsignedByte { OpenData = 1 << 0, OpenState = 1 << 1, FileCallback = 1 << 2 } new in 2020.06
Features supported by an importer.
enum class ImporterFlag: UnsignedByte { Quiet = 1 << 1 new in Git master, Verbose = 1 << 0 } new in 2020.06
Importer flag.

Typedefs

using ImporterFeatures = Containers::EnumSet<ImporterFeature> new in 2020.06
Set of features supported by an importer.
using ImporterFileCallbackPolicy = InputFileCallbackPolicy deprecated in 2019.10
Input file callback policy.
using ImporterFlags = Containers::EnumSet<ImporterFlag> new in 2020.06
Importer flags.

Functions

auto operator<<(Debug& debug, ImporterFeature value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, ImporterFeatures value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, ImporterFlag value) -> Debug& new in 2020.06
Debug output operator.
auto operator<<(Debug& debug, ImporterFlags value) -> Debug& new in 2020.06
Debug output operator.

Defines

#define MAGNUM_TRADE_ABSTRACTIMPORTER_PLUGIN_INTERFACE new in Git master
Importer plugin interface.

Define documentation

#define MAGNUM_TRADE_ABSTRACTIMPORTER_PLUGIN_INTERFACE new in Git master

Importer plugin interface.

Same string as returned by AbstractImporter::pluginInterface(), meant to be used inside CORRADE_PLUGIN_REGISTER() to avoid having to update the interface string by hand every time the version gets bumped:

CORRADE_PLUGIN_REGISTER(MyImporter, MyNamespace::MyImporter,
    MAGNUM_TRADE_ABSTRACTIMPORTER_PLUGIN_INTERFACE)

The interface string version gets increased on every ABI break to prevent silent crashes and memory corruption. Plugins built against the previous version will then fail to load, a subsequent rebuild will make them pick up the updated interface string.