Commit 69502a07 authored by Pawel Sznajder's avatar Pawel Sznajder
Browse files

add copy constructor to ComparisonReport and correct List for missing

comparison data
parent fbb68ae4
......@@ -289,7 +289,7 @@ public:
debug(__func__,
rootComparisonReport.showComparedDataFailed());
}
rootComparisonReport.clearComparedData();
// rootComparisonReport.clearComparedData();
}
debug(__func__, rootComparisonReport.showComparisonStats());
......
......@@ -28,10 +28,10 @@ class ComparisonReport {
public:
/**
* Constructor.
* @param tolerances Tolerance.
*/
/**
* Constructor.
* @param tolerances Tolerance.
*/
ComparisonReport(const NumA::Tolerances &tolerances);
/**
......@@ -44,6 +44,12 @@ public:
const std::string &objectClassNameTested,
const std::string &referenceObjectClassName);
/**
* Copy constructor.
* @param other Object to be copied.
*/
ComparisonReport(const ComparisonReport& other);
/**
* Destructor.
*/
......@@ -78,9 +84,9 @@ public:
*/
void clearComparedData();
//********************************************************
//*** SETTERS AND GETTERS ********************************
//********************************************************
//********************************************************
//*** SETTERS AND GETTERS ********************************
//********************************************************
/**
* Check if the comparison is passed.
......
......@@ -9,7 +9,6 @@
namespace PARTONS {
ComparisonReport::ComparisonReport(const NumA::Tolerances &tolerances) :
m_environmentSetting(ElemUtils::StringUtils::EMPTY), m_objectClassNameTested(
ElemUtils::StringUtils::EMPTY), m_referenceObjectClassName(
......@@ -26,7 +25,16 @@ ComparisonReport::ComparisonReport(const std::string& environmentSetting,
objectClassNameTested), m_referenceObjectClassName(
referenceObjectClassName), m_numberOfComparedDataFailed(0), m_numberOfComparedDataPassed(
0) {
Partons::getInstance()->getEnvironmentConfiguration()->getFile();
}
ComparisonReport::ComparisonReport(const ComparisonReport& other) :
m_environmentSetting(other.m_environmentSetting), m_objectClassNameTested(
other.m_objectClassNameTested), m_referenceObjectClassName(
other.m_referenceObjectClassName), m_comparedDataPassed(
other.m_comparedDataPassed), m_comparedDataFailed(
other.m_comparedDataFailed), m_tolerances(other.m_tolerances), m_numberOfComparedDataPassed(
other.m_numberOfComparedDataPassed), m_numberOfComparedDataFailed(
other.m_numberOfComparedDataFailed) {
}
ComparisonReport::~ComparisonReport() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment