mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Move all Val classes to the zeek namespaces
This commit is contained in:
parent
ec9eff0bd5
commit
64332ca22c
265 changed files with 3154 additions and 3086 deletions
|
@ -9,12 +9,12 @@
|
|||
|
||||
using namespace file_analysis;
|
||||
|
||||
Entropy::Entropy(RecordValPtr args, File* file)
|
||||
Entropy::Entropy(zeek::RecordValPtr args, File* file)
|
||||
: file_analysis::Analyzer(file_mgr->GetComponentTag("ENTROPY"),
|
||||
std::move(args), file)
|
||||
{
|
||||
//entropy->Init();
|
||||
entropy = new EntropyVal;
|
||||
entropy = new zeek::EntropyVal;
|
||||
fed = false;
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ Entropy::~Entropy()
|
|||
Unref(entropy);
|
||||
}
|
||||
|
||||
file_analysis::Analyzer* Entropy::Instantiate(RecordValPtr args,
|
||||
file_analysis::Analyzer* Entropy::Instantiate(zeek::RecordValPtr args,
|
||||
File* file)
|
||||
{
|
||||
return new Entropy(std::move(args), file);
|
||||
|
@ -63,12 +63,12 @@ void Entropy::Finalize()
|
|||
entropy->Get(&ent, &chisq, &mean, &montepi, &scc);
|
||||
|
||||
static auto entropy_test_result = zeek::id::find_type<zeek::RecordType>("entropy_test_result");
|
||||
auto ent_result = zeek::make_intrusive<RecordVal>(entropy_test_result);
|
||||
ent_result->Assign<DoubleVal>(0, ent);
|
||||
ent_result->Assign<DoubleVal>(1, chisq);
|
||||
ent_result->Assign<DoubleVal>(2, mean);
|
||||
ent_result->Assign<DoubleVal>(3, montepi);
|
||||
ent_result->Assign<DoubleVal>(4, scc);
|
||||
auto ent_result = zeek::make_intrusive<zeek::RecordVal>(entropy_test_result);
|
||||
ent_result->Assign<zeek::DoubleVal>(0, ent);
|
||||
ent_result->Assign<zeek::DoubleVal>(1, chisq);
|
||||
ent_result->Assign<zeek::DoubleVal>(2, mean);
|
||||
ent_result->Assign<zeek::DoubleVal>(3, montepi);
|
||||
ent_result->Assign<zeek::DoubleVal>(4, scc);
|
||||
|
||||
mgr.Enqueue(file_entropy,
|
||||
GetFile()->ToVal(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue