| kdb::tools::PluginSpec(3elektra) | Elektra | kdb::tools::PluginSpec(3elektra) |
NAME¶
kdb::tools::PluginSpec - Specifies a plugin by its name and configuration.
SYNOPSIS¶
#include <pluginspec.hpp>
Public Member Functions¶
PluginSpec (std::string pluginName, KeySet
pluginConfig=KeySet())
Construct a plugin spec with a given module name. PluginSpec
(std::string pluginName, std::string refName, KeySet
pluginConfig=KeySet())
Construct a plugin spec with a given module and ref name. PluginSpec
(std::string pluginName, size_t refNumber, KeySet
pluginConfig=KeySet())
Construct a plugin spec with a given module name and ref number. std::string
getFullName () const
std::string getRefName () const
bool isRefNumber () const
Checks if reference name contains only numbers. std::string getName ()
const
KeySet getConfig () const
void setFullName (std::string const &name)
Set the full name with # or only the name. void setRefName (std::string
const &name)
Set the reference name of the plugin. void setRefNumber (size_t number)
Set a number for automatic references during parsing. void setName
(std::string const &name)
Set the module name of the plugin. void appendConfig (KeySet
config)
Append to config. void setConfig (KeySet config)
Set plugin config. void validate (std::string const &str) const
Check if str starts with a-z and then only has chars a-z, 0-9 or underscore
(_)
Detailed Description¶
Specifies a plugin by its name and configuration.
Invariant:
refname is valid (same as above or a size_t number)
Constructor & Destructor Documentation¶
kdb::tools::PluginSpec::PluginSpec (std::string pluginName, KeySet pluginConfig = KeySet ()) [explicit]¶
Construct a plugin spec with a given module name.
Parameters:
pluginConfig the plugins config
Exceptions:
See also:
kdb::tools::PluginSpec::PluginSpec (std::string pluginName, std::string refName, KeySet pluginConfig = KeySet ()) [explicit]¶
Construct a plugin spec with a given module and ref name.
Parameters:
refName for uniqueness for more plugins from one module
pluginConfig the plugins config
Exceptions:
See also:
setRefName()
kdb::tools::PluginSpec::PluginSpec (std::string pluginName, size_t refNumber, KeySet pluginConfig = KeySet ()) [explicit]¶
Construct a plugin spec with a given module name and ref number.
Parameters:
refNumber for uniqueness for more plugins from one module
pluginConfig the plugins config
Exceptions:
See also:
setRefName()
Member Function Documentation¶
void kdb::tools::PluginSpec::appendConfig (KeySet c)¶
Append to config.
Parameters:
KeySet kdb::tools::PluginSpec::getConfig () const¶
Returns:
std::string kdb::tools::PluginSpec::getFullName () const¶
Note:
Returns:
std::string kdb::tools::PluginSpec::getName () const¶
Returns:
std::string kdb::tools::PluginSpec::getRefName () const¶
Returns:
bool kdb::tools::PluginSpec::isRefNumber () const¶
Checks if reference name contains only numbers.
Return values:
true if a refname was given
void kdb::tools::PluginSpec::setConfig (KeySet c)¶
Set plugin config.
Parameters:
void kdb::tools::PluginSpec::setFullName (std::string const & n)¶
Set the full name with # or only the name.
Exceptions:
Parameters:
void kdb::tools::PluginSpec::setName (std::string const & n)¶
Set the module name of the plugin.
Exceptions:
Parameters:
void kdb::tools::PluginSpec::setRefName (std::string const & n)¶
Set the reference name of the plugin.
Exceptions:
Makes different plugins based from the same module unique.
Parameters:
void kdb::tools::PluginSpec::setRefNumber (size_t refnumber)¶
Set a number for automatic references during parsing.
Parameters:
void kdb::tools::PluginSpec::validate (std::string const & n) const¶
Check if str starts with a-z and then only has chars a-z, 0-9 or underscore (_)
Parameters:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |