ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonPluginManager.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <vector>
11 
12 #include "Runtime/Runtime.h"
13 
17 {
18  public:
19  PythonPluginManager() = default;
20 
22  const std::vector<Runtime::RegisteredPlugin> &plugins() const;
23 
35 
41  void loadPluginsFrom(const QStringList &paths);
42 
44  void unloadPlugins();
45 
46  private:
47  std::vector<Runtime::RegisteredPlugin> m_plugins;
48 };
void loadPluginsFrom(const QStringList &paths)
const std::vector< Runtime::RegisteredPlugin > & plugins() const
Returns the currently loaded plugins.
PythonPluginManager()=default
void unloadPlugins()
This MUST be called before finalizing the interpreter.