mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Mark storage classes as final where appropriate
This commit is contained in:
parent
88786a28a2
commit
98bd85b805
5 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ namespace storage {
|
||||||
* A collection of EnumValPtrs for the default set of result codes in the storage framework.
|
* A collection of EnumValPtrs for the default set of result codes in the storage framework.
|
||||||
* should be kept up-to-date with the Storage::ReturnCodes script-level enum.
|
* should be kept up-to-date with the Storage::ReturnCodes script-level enum.
|
||||||
*/
|
*/
|
||||||
class ReturnCode {
|
class ReturnCode final {
|
||||||
public:
|
public:
|
||||||
static void Initialize();
|
static void Initialize();
|
||||||
static void Cleanup();
|
static void Cleanup();
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace zeek::storage::backend::redis {
|
namespace zeek::storage::backend::redis {
|
||||||
|
|
||||||
class Plugin : public plugin::Plugin {
|
class Plugin final : public plugin::Plugin {
|
||||||
public:
|
public:
|
||||||
plugin::Configuration Configure() override {
|
plugin::Configuration Configure() override {
|
||||||
AddComponent(new storage::BackendComponent("REDIS", backend::redis::Redis::Instantiate));
|
AddComponent(new storage::BackendComponent("REDIS", backend::redis::Redis::Instantiate));
|
||||||
|
|
|
@ -13,7 +13,7 @@ struct redisReply;
|
||||||
struct redisPollEvents;
|
struct redisPollEvents;
|
||||||
|
|
||||||
namespace zeek::storage::backend::redis {
|
namespace zeek::storage::backend::redis {
|
||||||
class Redis : public Backend, public iosource::IOSource {
|
class Redis final : public Backend, public iosource::IOSource {
|
||||||
public:
|
public:
|
||||||
Redis() : Backend(SupportedModes::ASYNC, "REDIS"), IOSource(true) {}
|
Redis() : Backend(SupportedModes::ASYNC, "REDIS"), IOSource(true) {}
|
||||||
~Redis() override = default;
|
~Redis() override = default;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace zeek::storage::backend::sqlite {
|
namespace zeek::storage::backend::sqlite {
|
||||||
|
|
||||||
class Plugin : public plugin::Plugin {
|
class Plugin final : public plugin::Plugin {
|
||||||
public:
|
public:
|
||||||
plugin::Configuration Configure() override {
|
plugin::Configuration Configure() override {
|
||||||
AddComponent(new storage::BackendComponent("SQLITE", backend::sqlite::SQLite::Instantiate));
|
AddComponent(new storage::BackendComponent("SQLITE", backend::sqlite::SQLite::Instantiate));
|
||||||
|
|
|
@ -10,7 +10,7 @@ struct sqlite3_stmt;
|
||||||
|
|
||||||
namespace zeek::storage::backend::sqlite {
|
namespace zeek::storage::backend::sqlite {
|
||||||
|
|
||||||
class SQLite : public Backend {
|
class SQLite final : public Backend {
|
||||||
public:
|
public:
|
||||||
SQLite() : Backend(SupportedModes::SYNC, "SQLITE") {}
|
SQLite() : Backend(SupportedModes::SYNC, "SQLITE") {}
|
||||||
~SQLite() override = default;
|
~SQLite() override = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue