mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Moving component's CanonicalName() method into base class.
This commit is contained in:
parent
9616cd8e61
commit
6d9e261384
6 changed files with 10 additions and 20 deletions
|
@ -12,7 +12,6 @@ Component::Component(const std::string& name, factory_callback arg_factory, Tag:
|
|||
: plugin::Component(plugin::component::FILE_ANALYZER, name),
|
||||
plugin::TaggedComponent<file_analysis::Tag>(subtype)
|
||||
{
|
||||
canon_name = canonify_name(name);
|
||||
factory = arg_factory;
|
||||
|
||||
file_mgr->RegisterComponent(this, "ANALYZER_");
|
||||
|
|
|
@ -54,14 +54,6 @@ public:
|
|||
*/
|
||||
~Component();
|
||||
|
||||
/**
|
||||
* Returns a canonocalized version of the analyzer's name. The
|
||||
* returned name is derived from what's passed to the constructor but
|
||||
* upper-cased and transformed to allow being part of a script-level
|
||||
* ID.
|
||||
*/
|
||||
const std::string& CanonicalName() const { return canon_name; }
|
||||
|
||||
/**
|
||||
* Returns the analyzer's factory function.
|
||||
*/
|
||||
|
@ -74,7 +66,6 @@ protected:
|
|||
virtual void DoDescribe(ODesc* d) const;
|
||||
|
||||
private:
|
||||
std::string canon_name; // The analyzer's canonical name.
|
||||
factory_callback factory; // The analyzer's factory callback.
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue