rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
plugin.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "version.hpp"
6#include "platform/dynamic_shared_object.h"
7
8#include <string>
9
10namespace rexlib
11{
12
13class service_catalog;
14
23{
24public:
25 plugin() = default;
26 plugin(const plugin& other) = default;
27 plugin(plugin&& other) = default;
28 virtual ~plugin() = default;
29
30 plugin& operator=(const plugin& other) = default;
31 plugin& operator=(plugin&& other) = default;
32
38 virtual const std::string& get_name() const noexcept = 0;
39
45 virtual version get_version() const noexcept = 0;
46
52 virtual void register_at(service_catalog& catalog) const = 0;
53};
54
55} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Abstract class representing a plugin interface.
Definition plugin.hpp:23
virtual const std::string & get_name() const noexcept=0
Get the name of the plugin.
Stores a single instance of each type service_manager.
Definition service_catalog.hpp:23
Definition version.hpp:15
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10