mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
33 lines
640 B
C++
33 lines
640 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "zeek/input/Component.h"
|
|
#include "zeek/input/Manager.h"
|
|
|
|
#include "zeek/Desc.h"
|
|
#include "zeek/util.h"
|
|
|
|
namespace zeek::input {
|
|
|
|
Component::Component(const std::string& name, factory_callback arg_factory)
|
|
: plugin::Component(plugin::component::READER, name)
|
|
{
|
|
factory = arg_factory;
|
|
}
|
|
|
|
void Component::Initialize()
|
|
{
|
|
InitializeTag();
|
|
input_mgr->RegisterComponent(this, "READER_");
|
|
}
|
|
|
|
Component::~Component()
|
|
{
|
|
}
|
|
|
|
void Component::DoDescribe(ODesc* d) const
|
|
{
|
|
d->Add("Input::READER_");
|
|
d->Add(CanonicalName());
|
|
}
|
|
|
|
} // namespace zeek::input
|