mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-04 04:30:51 -06:00
Made some functions private.
Made static member functions initializeOdbAPI() and finalizeOdbAPI() private. Consider removing finalizeOdbAPI() since we don't use it.
This commit is contained in:
parent
5a9f22bfd2
commit
be2f261f9d
@ -99,8 +99,6 @@ void readOdbFile(const std::string& fileName, RigFemPartCollection* femParts)
|
||||
{
|
||||
CVF_ASSERT(femParts);
|
||||
|
||||
RifOdbReader::initializeOdbAPI();
|
||||
|
||||
odb_String path = fileName.c_str();
|
||||
|
||||
odb_Odb& odb = openOdb(path);
|
||||
@ -239,6 +237,8 @@ std::map<std::string, std::vector<std::string> > scalarFieldAndComponentNames(od
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifOdbReader::readFemParts(const std::string& fileName, RigFemPartCollection* femParts)
|
||||
{
|
||||
initializeOdbAPI();
|
||||
|
||||
int status = 0;
|
||||
|
||||
try
|
||||
|
@ -55,16 +55,15 @@ public:
|
||||
|
||||
bool openFile(const std::string& fileName);
|
||||
|
||||
static void initializeOdbAPI();
|
||||
static void finalizeOdbAPI();
|
||||
|
||||
private:
|
||||
|
||||
void close();
|
||||
size_t resultItemCount(const std::string& fieldName, int stepIndex, int frameIndex) const;
|
||||
odb_Frame stepFrame(int stepIndex, int frameIndex) const;
|
||||
int componentIndex(const std::string& fieldName, const std::string& componentName) const;
|
||||
|
||||
static void initializeOdbAPI();
|
||||
static void finalizeOdbAPI();
|
||||
|
||||
private:
|
||||
odb_Odb* m_odb;
|
||||
static bool sm_odbAPIInitialized;
|
||||
|
Loading…
Reference in New Issue
Block a user