ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | Friends | List of all members
anna::diameter::comm::OamModule Class Reference

#include <OamModule.hpp>

Inheritance diagram for anna::diameter::comm::OamModule:
Inheritance graph
[legend]
Collaboration diagram for anna::diameter::comm::OamModule:
Collaboration graph
[legend]

Classes

struct  Alarm
 
struct  Counter
 

Public Member Functions

std::string getDefaultInternalAlarmDescription (const int &alarmType) const
 
std::string getDefaultInternalCounterDescription (const int &counterType) const
 
- Public Member Functions inherited from anna::oam::Module
 Module (const std::string &name)
 
virtual ~Module ()
 
int scopes () const
 
void enableCounters (void)
 
void disableCounters (void)
 
void enableAlarms (void)
 
void disableAlarms (void)
 
bool countersEnabled () const
 
bool alarmsEnabled () const
 
void enableAlarmsPreffix (void)
 
void enableAlarmsSuffix (void)
 
void disableAlarmsPreffix (void)
 
void disableAlarmsSuffix (void)
 
void setHandler (Handler *handler)
 
void initializeCounterScope (const int &scopeId, const std::string &description="") noexcept(false)
 
void setActiveCounterScope (const int &scopeId)
 
const anna::oam::CounterScopegetActiveCounterScope () const
 
void registerCounter (const int &type, const std::string &description, const int &offset) noexcept(false)
 
void registerAlarm (const int &type, const std::string &description, const int &externalId, const std::string &dynamicVariablesCSL, const int &activationId, const int &cancellationId=-1) noexcept(false)
 
const char * getName () const
 
const counter_data_tcounter (const int &type) const
 
const alarm_data_talarm (const int &type) const
 
void count (const int &type, const int &amount=1) noexcept(false)
 
int resetCounters (const int &scopeId=-1)
 
void setCounterRecorder (CounterRecorder *counterRecorder)
 
void recordCounters () noexcept(false)
 
void activateAlarm (int type,...) const noexcept(false)
 
void cancelAlarm (int type,...) const noexcept(false)
 
virtual std::string asString (void) const
 
virtual anna::xml::NodeasXML (anna::xml::Node *parent) const
 

Friends

class anna::Singleton< OamModule >
 

Additional Inherited Members

- Static Public Member Functions inherited from anna::Singleton< OamModule >
static OamModule & instantiate ()
 
static void release ()
 
- Static Public Attributes inherited from anna::oam::Module
static const int MaxScope = 1000
 
- Protected Member Functions inherited from anna::oam::Module
virtual void readAlarmPreffixComponents (std::vector< std::string > &components) const
 
virtual void readAlarmSuffixComponents (std::vector< std::string > &components) const
 

Member Function Documentation

◆ getDefaultInternalAlarmDescription()

std::string anna::diameter::comm::OamModule::getDefaultInternalAlarmDescription ( const int &  type) const
inlinevirtual

Child oam module classes should define descriptions for each enum type. A good practice would be the use of 'anna_declare_enum' macro in order to define names for enum types. This is an oam-internal description which should be redefined at application layer during registering. Returns undefined by default.

Parameters
typeCounter enum-identification within the own context/module
Returns
Default alarm description

Reimplemented from anna::oam::Module.

178 { return Alarm::asCString((Alarm::_v)alarmType); }
_v
Definition: OamModule.hpp:41

◆ getDefaultInternalCounterDescription()

std::string anna::diameter::comm::OamModule::getDefaultInternalCounterDescription ( const int &  type) const
inlinevirtual

Child oam module classes should define descriptions for each enum type. A good practice would be the use of 'anna_declare_enum' macro in order to define names for enum types. This is an oam-internal description which should be redefined at application layer during registering. Returns undefined by default.

Parameters
typeCounter enum-identification within the own context/module
Returns
Default counter description

Reimplemented from anna::oam::Module.

179 { return Counter::asCString((Counter::_v)counterType); }
_v
Definition: OamModule.hpp:76

Friends And Related Function Documentation

◆ anna::Singleton< OamModule >

friend class anna::Singleton< OamModule >
friend

The documentation for this class was generated from the following file: