Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[ JIRA Id - ODUHIGH-606 ] Fixing null memory size allocation issue
[o-du/l2.git]
/
src
/
o1
/
AlarmManager.hpp
diff --git
a/src/o1/AlarmManager.hpp
b/src/o1/AlarmManager.hpp
index
0562f63
..
8382669
100644
(file)
--- a/
src/o1/AlarmManager.hpp
+++ b/
src/o1/AlarmManager.hpp
@@
-1,6
+1,6
@@
/*******************************************************************************
################################################################################
/*******************************************************************************
################################################################################
-# Copyright (c) [2020
] [HCL Technologies Ltd.]
#
+# Copyright (c) [2020
-2022] [HCL Technologies Ltd.]
#
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
@@
-30,23
+30,25
@@
#include "PnfRegistrationThread.hpp"
#include "VesUtils.hpp"
#include "VesEventHandler.hpp"
#include "PnfRegistrationThread.hpp"
#include "VesUtils.hpp"
#include "VesEventHandler.hpp"
+#include "Observer.hpp"
using std::map;
using std::map;
-
-class AlarmManager : public Singleton<AlarmManager>
+class AlarmManager : public Singleton<AlarmManager> ,public Observer
{
friend Singleton<AlarmManager>;
private:
{
friend Singleton<AlarmManager>;
private:
- map<uint16_t,Alarm> mAlarmList;
+ map<uint16_t,Alarm> mAlarmList;
protected:
protected:
- AlarmManager();
+ AlarmManager();
~AlarmManager();
public:
~AlarmManager();
public:
+
+ void update(char* recvBuf);
bool raiseAlarm(const Alarm& alarm);
bool clearAlarm(const uint16_t& alarmId);
bool clearAlarm(const Alarm& alarm );
bool raiseAlarm(const Alarm& alarm);
bool clearAlarm(const uint16_t& alarmId);
bool clearAlarm(const Alarm& alarm );