Move all of the base plugin classes into the zeek::plugin namespace

This commit is contained in:
Tim Wojtulewicz 2020-05-13 17:11:03 -07:00
parent cbdb8ee074
commit e77e8c4b7b
28 changed files with 404 additions and 240 deletions

View file

@ -5,7 +5,7 @@
#include "../Desc.h"
#include "../Reporter.h"
using namespace plugin;
using namespace zeek::plugin;
Component::Component(component::Type arg_type, const std::string& arg_name)
{
@ -14,6 +14,13 @@ Component::Component(component::Type arg_type, const std::string& arg_name)
canon_name = canonify_name(name);
}
Component::Component(::plugin::component::Type arg_type, const std::string& arg_name)
{
type = static_cast<component::Type>(arg_type);
name = arg_name;
canon_name = canonify_name(name);
}
Component::~Component()
{
}