30#include "nexuslua_export.h"
45 std::unique_ptr<Impl> _impl;
104 std::shared_ptr<Agent>
Get(
const std::string& agentName);
base class of the three types of agents
Definition agent.hpp:60
Iterator end()
required to iterator over plugins using a for loop
PluginRegistry(const std::shared_ptr< nexuslua::agents > &agents)
void RescanInstalled()
merge information about the installed plugins with the online plugins; this covers situations where a...
std::string GetErrorMessage()
return the last error message
std::shared_ptr< Agent > Get(const std::string &agentName)
return the nexuslua::Agent with the given name, provided it is installed as a plugin
PluginInstallResult Install(std::string name, std::string &strError)
install the given online plugin; store any errors in strError
std::size_t Count() const
return the current number of plugins; depending if RescanInstalled() has been called,...
Iterator begin()
required to iterator over plugins using a for loop
Functions related to agents or plugins, which are (un-)installable agents with meta data like a versi...
Definition agents.hpp:49
The nexuslua library is implemented inside this namespace.
PluginInstallResult
result values of agents::InstallPlugin
Definition plugin_install_result.hpp:34
enable iteration over plugins using an instance of PluginsOnline
Definition plugin_registry.hpp:50
pointer operator->()
arrow operator
Definition plugin_registry.hpp:72
struct { Impl * impl; std::size_t pos; } pointer
Type of the iterator's pointer-like object.
Definition plugin_registry.hpp:55
friend bool operator!=(const Iterator &a, const Iterator &b)
inequality comparison operator
Definition plugin_registry.hpp:93
std::shared_ptr< Agent > value_type
Definition plugin_registry.hpp:53
Iterator(pointer ptr)
Construct a new Iterator object.
Definition plugin_registry.hpp:63
std::ptrdiff_t difference_type
Definition plugin_registry.hpp:52
Iterator & operator++()
prefix increment
Definition plugin_registry.hpp:75
const Iterator operator++(int)
postfix increment
Definition plugin_registry.hpp:82
friend bool operator==(const Iterator &a, const Iterator &b)
equality comparison operator
Definition plugin_registry.hpp:90
value_type operator*() const
dereference operator
std::input_iterator_tag iterator_category
Definition plugin_registry.hpp:51