refactor(userspace/engine): clean up and rename rule reader

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-09-13 08:50:29 +00:00
committed by poiana
parent b0f0105116
commit 89e8f70de0
2 changed files with 29 additions and 24 deletions

View File

@@ -16,22 +16,25 @@ limitations under the License.
#pragma once
#include <map>
#include <string>
#include <vector>
#include "rule_loader.h"
#include "rule_loader_collector.h"
namespace rule_loader
{
/*!
\brief Reads the contents of a ruleset
*/
class rule_reader
class reader
{
public:
virtual ~rule_reader() = default;
virtual ~reader() = default;
/*!
\brief Reads the contents of a ruleset and uses a loader to store
\brief Reads the contents of a ruleset and uses a collector to store
thew new definitions
*/
virtual bool load(rule_loader::configuration& cfg, rule_loader& loader);
virtual bool read(configuration& cfg, collector& loader);
};
}; // namespace rule_loader