29 std::stringstream stream;
31 throw std::logic_error(stream.str());
36 if (param.
Name ==
"file_name")
43 catch (
const std::exception &
err)
45 std::cerr <<
"Unable to load address space from the file '" << param.
Value <<
"'. " << err.what() << std::endl;
65 std::stringstream stream;
67 throw std::logic_error(stream.str());
virtual void Initialize(Common::AddonsManager &addons, const Common::AddonParameters ¶ms)
initialize addon.
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
virtual std::shared_ptr< Addon > GetAddon(const AddonId &id) const =0
getting addon by id
NodeManagementServices::SharedPtr Registry
const char AddressSpaceRegistryAddonId[]
registry_t< std::mutex > registry
virtual void Load(const char *path)
OPC UA Address space part. GNU LGPL.
virtual void Stop()
Stopping addon work. After calling this method addon should throw exception on any calls...
std::vector< Parameter > Parameters