/**************************************************************************** ** Copyright (c) 2016, Fougue SAS ** SPDX-License-Identifier: BSD-2-Clause ****************************************************************************/ #pragma once #include "../base/io_writer.h" #include "../base/property.h" #include #include namespace Mayo::IO { // Provides factory for gmio-based Writer objects class GmioFactoryWriter : public FactoryWriter { public: gsl::span formats() const override; std::unique_ptr create(Format format) const override; std::unique_ptr createProperties(Format format, PropertyGroup* parentGroup) const override; static std::unique_ptr create() { #ifdef MAYO_HAVE_GMIO return std::make_unique(); #else return {}; #endif } }; struct GmioLib { static std::string_view strName() { return "gmio"; } #ifdef MAYO_HAVE_GMIO static std::string_view strVersion(); static std::string_view strVersionDetails() { return "(build)"; } #else static std::string_view strVersion() { return {}; } static std::string_view strVersionDetails() { return {}; } #endif }; } // namespace Mayo::IO