ANNA Suite  2020b
Multipurpose development suite for Telco applications
Handler.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_core_oam_Handler_hpp
10 #define anna_core_oam_Handler_hpp
11 
12 
14 
15 // STL
16 #include <string>
17 
19 
20 #include <cstdarg>
21 
22 
23 namespace anna {
24 
25 namespace oam {
26 
27 class Module;
28 
29 
33 class Handler {
34 
35 protected:
36 
48  virtual const counter_data_t *counterEvent(const Module *module, const int & type, const int & amount) const ;
49 
67  virtual const alarm_data_t *alarmEvent(const Module *module, const char *textPreffix, const char *textSuffix, char textSeparator, bool activation, const int & type, va_list argList) const ;
68 
69 
70 public:
71 
75  Handler() {;}
76 
80  ~Handler() {;}
81 
82 
90  virtual void registerCounter(Module *module, const int &type, const std::string &description, const int &offset) noexcept(false) {;}
91 
99  virtual void registerAlarm(Module *module, const int &type, const std::string &description, const int &externalId, const std::string &dynamicVariablesCSL, const int &activationId, const int &cancellationId = -1) noexcept(false) {;}
100 
101 
102  friend class Module;
103 };
104 
105 }
106 }
107 
108 #endif
109 
Definition: Handler.hpp:33
~Handler()
Definition: Handler.hpp:80
virtual void registerAlarm(Module *module, const int &type, const std::string &description, const int &externalId, const std::string &dynamicVariablesCSL, const int &activationId, const int &cancellationId=-1) noexcept(false)
Definition: Handler.hpp:99
Definition: Module.hpp:135
Handler()
Definition: Handler.hpp:75
Definition: defines.hpp:21
virtual const counter_data_t * counterEvent(const Module *module, const int &type, const int &amount) const
virtual void registerCounter(Module *module, const int &type, const std::string &description, const int &offset) noexcept(false)
Definition: Handler.hpp:90
Definition: defines.hpp:31
Definition: app.hpp:12
virtual const alarm_data_t * alarmEvent(const Module *module, const char *textPreffix, const char *textSuffix, char textSeparator, bool activation, const int &type, va_list argList) const