X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fstatistics%2FMeter.cpp;h=3058ebcf0e1cc2a5db8e2f6c40eb9f8a2c85077d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=feda7630ff363444c6299f8aa8ce2cbac90b2200;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/statistics/Meter.cpp b/source/statistics/Meter.cpp index feda763..3058ebc 100644 --- a/source/statistics/Meter.cpp +++ b/source/statistics/Meter.cpp @@ -26,9 +26,9 @@ using namespace anna::statistics; //------------------------------------------------------------------------------ // Default Constructor -Meter::Meter(const std::string & description) { +Meter::Meter(const std::string & name) : a_accumulator(name) { Engine& statsEngine = Engine::instantiate(); - a_single_accumulator_concept_id = statsEngine.addConcept(description, "ms", true); + a_single_accumulator_concept_id = statsEngine.addConcept(name, "ms", true); } @@ -57,7 +57,7 @@ const Meter & Meter::operator = (const Meter & meter) { //------------------------------------------------------------------------------ //------------------------------------------------------------ Meter::asString() //------------------------------------------------------------------------------ -std::string Meter::asString(const int & numberOfDecimals) const throw() { +std::string Meter::asString(const int & numberOfDecimals) const { std::string trace; trace = "\n====="; trace += "\nMeter"; @@ -70,7 +70,7 @@ std::string Meter::asString(const int & numberOfDecimals) const throw() { //------------------------------------------------------------------------------ //--------------------------------------------------------------- Meter::asXML() //------------------------------------------------------------------------------ -anna::xml::Node* Meter::asXML(anna::xml::Node* parent, const int & numberOfDecimals) const throw() { +anna::xml::Node* Meter::asXML(anna::xml::Node* parent, const int & numberOfDecimals) const { anna::xml::Node* result = parent->createChild("anna.statistics.Meter"); return (a_accumulator.asXML(result, numberOfDecimals)); }