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
|
@ -55,6 +55,14 @@ public:
|
|||
*/
|
||||
const std::string& Name() const;
|
||||
|
||||
/**
|
||||
* Returns a canonocalized version of the components'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 a textual representation of the component. This goes into
|
||||
* the output of "bro -NN".
|
||||
|
@ -83,6 +91,7 @@ private:
|
|||
|
||||
component::Type type;
|
||||
std::string name;
|
||||
std::string canon_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue