Nov_12_2023-Dev

This commit is contained in:
Ned Wright
2023-11-12 18:50:17 +00:00
parent 0869b8f24d
commit 3061342b45
114 changed files with 3627 additions and 1305 deletions

View File

@@ -31,7 +31,7 @@ bool Match::operator==(const Match &other) const
}
Behavior::Behavior()
: m_action(""), m_log(""), m_sourceIdentifier("")
: m_id(""), m_action(""), m_log(""), m_sourceIdentifier("")
{
}
@@ -40,6 +40,11 @@ bool Behavior::operator==(const Behavior &other) const
return (m_action == other.m_action) && (m_log == other.m_log) && (m_sourceIdentifier == other.m_sourceIdentifier);
}
const std::string & Behavior::getParentId() const
{
return m_id;
}
const std::string & Behavior::getAction() const
{
return m_action;
@@ -55,6 +60,11 @@ const std::string& Behavior::getSourceIdentifier() const
return m_sourceIdentifier;
}
void Behavior::setParentId(const std::string& id)
{
m_id = id;
}
bool Rule::operator==(const Rule &other) const
{
return (m_match == other.m_match) &&
@@ -70,7 +80,9 @@ bool Policy::operator==(const Policy &other) const
State::State() :
bForceBlock(false),
forceBlockIds(),
bForceException(false),
forceExceptionIds(),
bIgnoreLog(false),
bSourceIdentifierOverride(false),
sSourceIdentifierMatch("")