X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Foam%2FCounterScope.cpp;fp=source%2Fcore%2Foam%2FCounterScope.cpp;h=88425587b7181d853413bd477460544c283454b6;hp=8900d3e585610a4d76aa0d4de78bc721a2aae6b1;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/oam/CounterScope.cpp b/source/core/oam/CounterScope.cpp index 8900d3e..8842558 100644 --- a/source/core/oam/CounterScope.cpp +++ b/source/core/oam/CounterScope.cpp @@ -46,7 +46,7 @@ oam::CounterScope::~CounterScope() { } void oam::CounterScope::create(const int counter, const char* name) -throw(RuntimeException) { +noexcept(false) { test_range(counter); if(a_counters [counter] != NULL) { @@ -70,7 +70,7 @@ throw(RuntimeException) { } oam::Counter::type_t oam::CounterScope::increment(const int counter, const oam::Counter::type_t value) -throw(RuntimeException) { +noexcept(false) { test_range(counter); test_instance(counter); a_counters [counter]->a_value += value; @@ -80,7 +80,7 @@ throw(RuntimeException) { } oam::Counter::type_t oam::CounterScope::assign(const int counter, const oam::Counter::type_t value) -throw(RuntimeException) { +noexcept(false) { test_range(counter); test_instance(counter); a_counters [counter]->a_value = value; @@ -90,20 +90,20 @@ throw(RuntimeException) { } oam::Counter::type_t oam::CounterScope::getValue(const int counter) const -throw(RuntimeException) { +noexcept(false) { test_range(counter); test_instance(counter); return a_counters [counter]->a_value; } U64 oam::CounterScope::getAccValue(const int counter) const -throw(RuntimeException) { +noexcept(false) { test_range(counter); test_instance(counter); return a_counters [counter]->a_accValue; } -int oam::CounterScope::resetAccValues() throw(RuntimeException) { +int oam::CounterScope::resetAccValues() noexcept(false) { int result = 0; // affected counters for(int ii = 0; ii < MaxCounter; ii ++) @@ -114,14 +114,14 @@ int oam::CounterScope::resetAccValues() throw(RuntimeException) { } const oam::Counter* oam::CounterScope::getCounter(const int counter) const -throw(RuntimeException) { +noexcept(false) { test_range(counter); test_instance(counter); return a_counters [counter]; } string oam::CounterScope::asString() const -throw() { +{ string result("oam::CounterScope { Id: "); result += functions::asString(a_id); result += " | Name: "; @@ -130,7 +130,7 @@ throw() { } xml::Node* oam::CounterScope::asXML(xml::Node* parent) const -throw(RuntimeException) { +noexcept(false) { xml::Node* result = parent->createChild("Scope"); xml::Node* counter;