}
void oam::CounterScope::create(const int counter, const char* name)
-throw(RuntimeException) {
+noexcept(false) {
test_range(counter);
if(a_counters [counter] != NULL) {
}
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;
}
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;
}
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 ++)
}
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: ";
}
xml::Node* oam::CounterScope::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
xml::Node* result = parent->createChild("Scope");
xml::Node* counter;