#2610 Add default constructor and setter

This commit is contained in:
Bjørn Erik Jensen 2018-04-06 15:52:16 +02:00
parent 8491fd7f6c
commit e8d765a2a9
2 changed files with 21 additions and 0 deletions

View File

@ -44,6 +44,17 @@ RifCaseRealizationParametersReader::RifCaseRealizationParametersReader(const QSt
m_textStream = nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifCaseRealizationParametersReader::RifCaseRealizationParametersReader()
{
m_parameters = new RigCaseRealizationParameters();
m_fileName = "";
m_file = nullptr;
m_textStream = nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@ -56,6 +67,14 @@ RifCaseRealizationParametersReader::~RifCaseRealizationParametersReader()
closeFile();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifCaseRealizationParametersReader::setFileName(const QString& fileName)
{
m_fileName = fileName;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -42,9 +42,11 @@ class QFile;
class RifCaseRealizationParametersReader
{
public:
RifCaseRealizationParametersReader();
RifCaseRealizationParametersReader(const QString& fileName);
~RifCaseRealizationParametersReader();
void setFileName(const QString& fileName);
void parse();
const cvf::ref<RigCaseRealizationParameters> parameters() const;