mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1440 Add const to date access functions
This commit is contained in:
@@ -44,8 +44,8 @@ public:
|
||||
virtual bool openFile(const std::string& fileName, std::string* errorMessage) = 0;
|
||||
|
||||
virtual bool readFemParts(RigFemPartCollection* geoMechCase) = 0;
|
||||
virtual std::vector<std::string> stepNames() = 0;
|
||||
virtual std::vector<double> frameTimes(int stepIndex) = 0;
|
||||
virtual std::vector<std::string> stepNames() const = 0;
|
||||
virtual std::vector<double> frameTimes(int stepIndex) const = 0;
|
||||
|
||||
virtual std::vector<std::string> elementSetNames(int partIndex) = 0;
|
||||
virtual std::vector<size_t> elementSet(int partIndex, int setIndex) = 0;
|
||||
|
||||
@@ -422,7 +422,7 @@ bool RifOdbReader::readFemParts(RigFemPartCollection* femParts)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::string> RifOdbReader::stepNames()
|
||||
std::vector<std::string> RifOdbReader::stepNames() const
|
||||
{
|
||||
CVF_ASSERT(m_odb != NULL);
|
||||
|
||||
@@ -442,7 +442,7 @@ std::vector<std::string> RifOdbReader::stepNames()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<double> RifOdbReader::frameTimes(int stepIndex)
|
||||
std::vector<double> RifOdbReader::frameTimes(int stepIndex) const
|
||||
{
|
||||
CVF_ASSERT(m_odb != NULL);
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ public:
|
||||
virtual bool openFile(const std::string& fileName, std::string* errorMessage);
|
||||
|
||||
virtual bool readFemParts(RigFemPartCollection* geoMechCase);
|
||||
virtual std::vector<std::string> stepNames();
|
||||
virtual std::vector<double> frameTimes(int stepIndex);
|
||||
virtual std::vector<std::string> stepNames() const override;
|
||||
virtual std::vector<double> frameTimes(int stepIndex) const override;
|
||||
|
||||
virtual std::vector<std::string> elementSetNames(int partIndex);
|
||||
virtual std::vector<size_t> elementSet(int partIndex, int setIndex);
|
||||
|
||||
Reference in New Issue
Block a user