plugify 1.0.0.0
Loading...
Searching...
No Matches
plugin_reference_descriptor.hpp
1#pragma once
2
3#include <optional>
4#include <span>
5#include <string>
6
7#include "handle.hpp"
8
9#include <plugify_export.h>
10
11namespace plugify {
12 struct PluginReferenceDescriptor;
13
18 class PLUGIFY_API PluginReferenceDescriptorHandle : public Handle<const PluginReferenceDescriptor> {
19 using Handle::Handle;
20 public:
26 std::string_view GetName() const noexcept;
27
33 bool IsOptional() const noexcept;
34
40 std::span<const std::string_view> GetSupportedPlatforms() const noexcept;
41
47 std::optional<plg::version> GetRequestedVersion() const noexcept;
48 };
49} // namespace plugify
A generic handle class that manages a pointer to an object of type T.
Definition handle.hpp:18
A handle class for the PluginReferenceDescriptor structure.
std::string_view GetName() const noexcept
Retrieves the name of the referenced plugin.