projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix local server for multiple applications
[anna.git]
/
source
/
core
/
oam
/
CounterScope.cpp
diff --git
a/source/core/oam/CounterScope.cpp
b/source/core/oam/CounterScope.cpp
index
8900d3e
..
8842558
100644
(file)
--- 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)
}
void oam::CounterScope::create(const int counter, const char* name)
-
throw(RuntimeException
) {
+
noexcept(false
) {
test_range(counter);
if(a_counters [counter] != NULL) {
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)
}
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;
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)
}
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;
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
}
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
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;
}
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 ++)
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
}
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
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: ";
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
}
xml::Node* oam::CounterScope::asXML(xml::Node* parent) const
-
throw(RuntimeException
) {
+
noexcept(false
) {
xml::Node* result = parent->createChild("Scope");
xml::Node* counter;
xml::Node* result = parent->createChild("Scope");
xml::Node* counter;