///
/// HybridCipherFactorySpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `HybridCipherSpec` to properly resolve imports.
namespace margelo::nitro::crypto { class HybridCipherSpec; }
// Forward declaration of `CipherArgs` to properly resolve imports.
namespace margelo::nitro::crypto { struct CipherArgs; }

#include <memory>
#include "HybridCipherSpec.hpp"
#include "CipherArgs.hpp"

namespace margelo::nitro::crypto {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `CipherFactory`
   * Inherit this class to create instances of `HybridCipherFactorySpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridCipherFactory: public HybridCipherFactorySpec {
   * public:
   *   HybridCipherFactory(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridCipherFactorySpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridCipherFactorySpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridCipherFactorySpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<HybridCipherSpec> createCipher(const CipherArgs& args) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "CipherFactory";
  };

} // namespace margelo::nitro::crypto
