mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 15:03:27 -06:00
#2610 Add default constructor and setter
This commit is contained in:
parent
8491fd7f6c
commit
e8d765a2a9
@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user