Remove dynamic exceptions
[anna.git] / source / core / oam / CounterScope.cpp
index 8900d3e..8842558 100644 (file)
@@ -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;