|
DQCsim
|
Wrapper class for local plugin thread configurations. More...
Public Member Functions | |
| PluginThreadConfiguration (HandleIndex handle) noexcept | |
| Wraps the given plugin thread configuration handle. More... | |
| PluginThreadConfiguration (const PluginThreadConfiguration &)=delete | |
| void | operator= (const PluginThreadConfiguration &)=delete |
| PluginThreadConfiguration (PluginThreadConfiguration &&)=default | |
| Default move constructor. | |
| PluginThreadConfiguration & | operator= (PluginThreadConfiguration &&)=default |
| Default move assignment. | |
| PluginType | get_plugin_type () const override |
| Returns the plugin type. More... | |
| std::string | get_name () const override |
| Returns the name given to the plugin. More... | |
| void | add_init_cmd (ArbCmd &&cmd) override |
| Attaches an arbitrary initialization command to the plugin. More... | |
| PluginThreadConfiguration && | with_init_cmd (ArbCmd &&cmd) |
| Attaches an arbitrary initialization command to the plugin (builder pattern). More... | |
| void | set_verbosity (Loglevel level) override |
| Sets the logging verbosity level of the plugin. More... | |
| PluginThreadConfiguration && | with_verbosity (Loglevel level) |
| Sets the logging verbosity level of the plugin (builder pattern). More... | |
| Loglevel | get_verbosity () const override |
| Returns the current logging verbosity level of the plugin. More... | |
| void | log_tee (Loglevel verbosity, const std::string &filename) override |
| Configures a plugin thread to also output its log messages to a file. More... | |
| PluginThreadConfiguration && | with_log_tee (Loglevel verbosity, const std::string &filename) |
| Configures a plugin thread to also output its log messages to a file (builder pattern). More... | |
Public Member Functions inherited from dqcsim::wrap::PluginConfiguration | |
| PluginConfiguration (HandleIndex handle) noexcept | |
| Wraps the given plugin process or thread configuration handle. More... | |
| PluginConfiguration (const PluginConfiguration &)=delete | |
| void | operator= (const PluginConfiguration &)=delete |
| PluginConfiguration (PluginConfiguration &&)=default | |
| Default move constructor. | |
| PluginConfiguration & | operator= (PluginConfiguration &&)=default |
| Default move assignment. | |
| void | add_init_cmd (const ArbCmd &cmd) |
| Attaches an arbitrary initialization command to the plugin. More... | |
Public Member Functions inherited from dqcsim::wrap::Handle | |
| Handle () noexcept | |
| Constructs an empty wrapper. More... | |
| Handle (HandleIndex handle) noexcept | |
| Wraps the given raw handle. More... | |
| virtual | ~Handle () noexcept |
| Delete the handle and its wrapper. | |
| void | free () |
| Explicitly delete the handle, allowing errors to be caught. More... | |
| bool | is_valid () const noexcept |
| Returns whether this wrapper (still) contains a valid handle. More... | |
| HandleIndex | get_handle () const noexcept |
| Returns the raw handle without relinquishing ownership. More... | |
| HandleIndex | take_handle () noexcept |
| Returns the raw handle and relinquishes ownership. More... | |
| Handle (const Handle &)=delete | |
| void | operator= (const Handle &)=delete |
| Handle (Handle &&src) | |
| Move constructor; simply moves ownership of the handle from the source object to the constructed object. More... | |
| Handle & | operator= (Handle &&src) |
| Move constructor; simply moves ownership of the handle from the source object to the assignment target. More... | |
| std::string | dump () const |
| Returns a string containing a debug dump of the handle. More... | |
| HandleType | type () const |
| Returns the type of this handle. More... | |
Additional Inherited Members | |
Protected Attributes inherited from dqcsim::wrap::Handle | |
| HandleIndex | handle |
| The wrapped handle. | |
|
inlinenoexcept |
|
inlineoverridevirtual |
Returns the plugin type.
| std::runtime_error | When the plugin definition handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inlineoverridevirtual |
Returns the name given to the plugin.
| std::runtime_error | When the plugin definition handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inlineoverridevirtual |
Attaches an arbitrary initialization command to the plugin.
| cmd | The initialization command to attach. |
| std::runtime_error | When the plugin definition or command handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inline |
|
inlineoverridevirtual |
Sets the logging verbosity level of the plugin.
| level | The desired logging verbosity for the plugin instance. |
| std::runtime_error | When the plugin definition handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inline |
|
inlineoverridevirtual |
Returns the current logging verbosity level of the plugin.
| std::runtime_error | When the plugin definition handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inlineoverridevirtual |
Configures a plugin thread to also output its log messages to a file.
| verbosity | Configures the verbosity level for the tee'd output file only. |
| filename | The path to the file to tee log messages to. |
| std::runtime_error | When the plugin definition handle is invalid. |
Implements dqcsim::wrap::PluginConfiguration.
|
inline |
Configures a plugin thread to also output its log messages to a file (builder pattern).
| verbosity | Configures the verbosity level for the tee'd output file only. |
| filename | The path to the file to tee log messages to. |
&self, to continue building. | std::runtime_error | When the plugin definition handle is invalid. |