X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter.comm%2FApplicationMessageOamModule.hpp;fp=include%2Fanna%2Fdiameter.comm%2FApplicationMessageOamModule.hpp;h=f3498b58863f98ae1931ed62830c13841eee6695;hp=d8f6fa66d82c6eebb7755de84c1c3faf84e23b4a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter.comm/ApplicationMessageOamModule.hpp b/include/anna/diameter.comm/ApplicationMessageOamModule.hpp index d8f6fa6..f3498b5 100644 --- a/include/anna/diameter.comm/ApplicationMessageOamModule.hpp +++ b/include/anna/diameter.comm/ApplicationMessageOamModule.hpp @@ -138,20 +138,20 @@ public: anna_declare_enum(Counter); }; - /* virtual */std::string getDefaultInternalCounterDescription(const int & counterType) const throw() { return Counter::asCString((Counter::_v)counterType); } + /* virtual */std::string getDefaultInternalCounterDescription(const int & counterType) const { return Counter::asCString((Counter::_v)counterType); } // map stack id with a scope id - void createStackCounterScope(int /* scope id */, unsigned int /* stack id */) throw(anna::RuntimeException); + void createStackCounterScope(int /* scope id */, unsigned int /* stack id */) noexcept(false); // translate message code into offset and invoke parent class count method. The message applicationId will be used as stack id // resultCode shall be -1 for non-answers - void count (int messageCode, int resultCode, unsigned int stackId, const int & type, const int & amount = 1) throw(anna::RuntimeException); + void count (int messageCode, int resultCode, unsigned int stackId, const int & type, const int & amount = 1) noexcept(false); // Number of different counter types for each message - int getCounterTypes() const throw() { return a_counter_types; } + int getCounterTypes() const { return a_counter_types; } // -1 if multistack - int monoStackScopeId() const throw() { + int monoStackScopeId() const { return ((a_stackMap.size() != 1) ? -1 : a_stackMap.begin()->second); }