zeek/src/file_analysis
Dominik Charousset 647fdf7737 Add facade types to avoid using raw Broker types
By avoiding to use `broker::data` directly, we gain a degree of freedom
that allows us to swap out `broker::data` for something else (e.g.,
`broker::variant`) in the future. Furthermore, it also helps us to keep
Broker types "local" to the Broker manager and gives us a nicer
interface.

Also replaces uses of `broker::expected` with `std::optional`. While an
`expected `can carry additional information as to why a value is not
present, nothing in Zeek ever cared about that. Hence, using
`std::optional` removes an unnecessary dependency on a Broker detail
while also being more efficient (no extra heap allocation when no value
is present).
2023-12-04 15:23:28 +01:00
..
analyzer Add facade types to avoid using raw Broker types 2023-12-04 15:23:28 +01:00
Analyzer.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Analyzer.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
AnalyzerSet.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
AnalyzerSet.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
CMakeLists.txt Use the same rules as cmake submodule to reformat Zeek 2023-05-09 08:31:43 -07:00
Component.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Component.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
File.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
File.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
file_analysis.bif Add Component::GetCanonicalNameVal to avoid extra StringVal allocations 2022-05-10 14:17:23 -07:00
FileReassembler.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
FileReassembler.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
FileTimer.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
FileTimer.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Manager.cc Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00
Manager.h Reformat Zeek in Spicy style 2023-10-30 09:40:55 +01:00