#2554 Regression Test : Move serialization code into RiaRegressionTest

This commit is contained in:
Magne Sjaastad
2018-03-06 17:42:00 +01:00
parent 08ce58b2fa
commit 2e122d2ab3
5 changed files with 25 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
#include "RiaRegressionTest.h"
#include "cafPdmSettings.h"
#include "cafPdmUiFilePathEditor.h"
#include "cafPdmUiTextEditor.h"
@@ -49,6 +50,22 @@ RiaRegressionTest::~RiaRegressionTest(void)
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaRegressionTest::writeSettingsToApplicationStore() const
{
caf::PdmSettings::writeFieldsToApplicationStore(this);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaRegressionTest::readSettingsFromApplicationStore()
{
caf::PdmSettings::readFieldsFromApplicationStore(this);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -32,6 +32,9 @@ public:
RiaRegressionTest(void);
virtual ~RiaRegressionTest(void);
void writeSettingsToApplicationStore() const;
void readSettingsFromApplicationStore();
public:
caf::PdmField<QString> applicationWorkingFolder;
caf::PdmField<QString> regressionTestFolder;