X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Falarm%2Falarm.hpp;h=738dd90177bff0a3f9507bd6f5e34c9ab82a0891;hb=2b74c8b7baebe36501d77f6848f25dc74ab64fc8;hp=18b9ba25916a61fa4dccfd85465077d106f0c80a;hpb=c85ac8bccf13f6aba024fef47453f3e1b6c3c615;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/alarm/alarm.hpp b/src/alarm/alarm.hpp index 18b9ba2..738dd90 100644 --- a/src/alarm/alarm.hpp +++ b/src/alarm/alarm.hpp @@ -52,7 +52,6 @@ class Alarm { std::string app_id = ""; // application ID int problem_id = -1; // problem ID (specific problem) std::string severity = ""; // set_sev() xlates from SEV_* consts to collector's string values - int action = 0; // ACT_* constants std::string info = ""; // info string supplied by user std::string add_info = ""; // additional information supplied by user @@ -70,18 +69,18 @@ class Alarm { static const int ACT_CLEAR = 2; static const int ACT_CLEAR_ALL = 3; - Alarm( std::shared_ptr msg ); // builders + explicit Alarm( std::shared_ptr msg ); // builders Alarm( std::shared_ptr msg, const std::string& meid ); Alarm( std::shared_ptr msg, int prob_id, const std::string& meid ); Alarm( const Alarm& soi ); // copy to newly created instance Alarm& operator=( const Alarm& soi ); // copy operator Alarm( Alarm&& soi ); // mover - Alarm& operator=( Alarm&& soi ); // move operator + Alarm& operator=( Alarm&& soi ) noexcept; // move operator ~Alarm(); // destroyer - const std::string Get_endpoint( ); + std::string Get_endpoint( ) const; void Set_additional( const std::string& new_info ); void Set_appid( const std::string& new_id ); @@ -103,7 +102,7 @@ class Alarm { bool Clear_all( ); - const void Dump(); + void Dump() const; }; } // namespace