refactor(userspace/engine): apply C++ best practices to newest engine classes

This include making a coherent use of const, remove private inheritance, and adding virtual destructors.

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-04-21 08:49:11 +00:00
committed by poiana
parent be177795c2
commit a16eac221e
9 changed files with 118 additions and 84 deletions

View File

@@ -67,7 +67,7 @@ public:
*/
struct configuration
{
configuration(const std::string& cont): content(cont) {}
explicit configuration(const std::string& cont): content(cont) {}
const std::string& content;
std::string output_extra;
bool replace_output_container_info;
@@ -172,6 +172,8 @@ public:
bool skip_if_unknown_filter;
};
virtual ~rule_loader() = default;
/*!
\brief Erases all the internal state and definitions
*/