/// /// HybridOmniSpec.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() #include #else #error NitroModules cannot be found! Are you sure you installed NitroModules properly? #endif namespace margelo::nitro::omni { using namespace margelo::nitro; /** * An abstract base class for `Omni` * Inherit this class to create instances of `HybridOmniSpec` in C++. * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual. * @example * ```cpp * class HybridOmni: public HybridOmniSpec { * public: * HybridOmni(...): HybridObject(TAG) { ... } * // ... * }; * ``` */ class HybridOmniSpec: public virtual HybridObject { public: // Constructor explicit HybridOmniSpec(): HybridObject(TAG) { } // Destructor ~HybridOmniSpec() override = default; public: // Properties virtual bool getIsRed() = 0; virtual void setIsRed(bool isRed) = 0; public: // Methods protected: // Hybrid Setup void loadHybridMethods() override; protected: // Tag for logging static constexpr auto TAG = "Omni"; }; } // namespace margelo::nitro::omni