EclUtil.hpp File Reference
#include <opm/io/eclipse/EclIOdata.hpp>
#include <opm/common/utility/FileSystem.hpp>
#include <string>
#include <tuple>
#include <vector>
#include <functional>
Include dependency graph for EclUtil.hpp:

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::EclIO
 

Functions

int Opm::EclIO::flipEndianInt (int num)
 
int64_t Opm::EclIO::flipEndianLongInt (int64_t num)
 
float Opm::EclIO::flipEndianFloat (float num)
 
double Opm::EclIO::flipEndianDouble (double num)
 
bool Opm::EclIO::isEOF (std::fstream *fileH)
 
bool Opm::EclIO::fileExists (const std::string &filename)
 
bool Opm::EclIO::isFormatted (const std::string &filename)
 
bool Opm::EclIO::is_number (const std::string &numstr)
 
bool Opm::EclIO::isEqualCaseInsensitive (const std::string &string1, const std::string &string2)
 
Opm::filesystem::path Opm::EclIO::findFileCaseInsensitive (const Opm::filesystem::path &folder, const std::string &filename)
 
std::tuple< int, int > Opm::EclIO::block_size_data_binary (eclArrType arrType)
 
std::tuple< int, int, int > Opm::EclIO::block_size_data_formatted (eclArrType arrType)
 
std::string Opm::EclIO::trimr (const std::string &str1)
 
uint64_t Opm::EclIO::sizeOnDiskBinary (int64_t num, Opm::EclIO::eclArrType arrType, int elementSize)
 
uint64_t Opm::EclIO::sizeOnDiskFormatted (const int64_t num, Opm::EclIO::eclArrType arrType, int elementSize)
 
void Opm::EclIO::readBinaryHeader (std::fstream &fileH, std::string &tmpStrName, int &tmpSize, std::string &tmpStrType)
 
void Opm::EclIO::readBinaryHeader (std::fstream &fileH, std::string &arrName, int64_t &size, Opm::EclIO::eclArrType &arrType, int &elementSize)
 
void Opm::EclIO::readFormattedHeader (std::fstream &fileH, std::string &arrName, int64_t &num, Opm::EclIO::eclArrType &arrType, int &elementSize)
 
template<typename T , typename T2 >
std::vector< T > Opm::EclIO::readBinaryArray (std::fstream &fileH, const int64_t size, Opm::EclIO::eclArrType type, std::function< T(T2)> &flip, int elementSize)
 
std::vector< int > Opm::EclIO::readBinaryInteArray (std::fstream &fileH, const int64_t size)
 
std::vector< float > Opm::EclIO::readBinaryRealArray (std::fstream &fileH, const int64_t size)
 
std::vector< double > Opm::EclIO::readBinaryDoubArray (std::fstream &fileH, const int64_t size)
 
std::vector< boolOpm::EclIO::readBinaryLogiArray (std::fstream &fileH, const int64_t size)
 
std::vector< unsigned int > Opm::EclIO::readBinaryRawLogiArray (std::fstream &fileH, const int64_t size)
 
std::vector< std::stringOpm::EclIO::readBinaryCharArray (std::fstream &fileH, const int64_t size)
 
std::vector< std::stringOpm::EclIO::readBinaryC0nnArray (std::fstream &fileH, const int64_t size, int elementSize)
 
template<typename T >
std::vector< T > Opm::EclIO::readFormattedArray (const std::string &file_str, const int size, int64_t fromPos, std::function< T(const std::string &)> &process)
 
std::vector< int > Opm::EclIO::readFormattedInteArray (const std::string &file_str, const int64_t size, int64_t fromPos)
 
std::vector< std::stringOpm::EclIO::readFormattedCharArray (const std::string &file_str, const int64_t size, int64_t fromPos, int elementSize)
 
std::vector< float > Opm::EclIO::readFormattedRealArray (const std::string &file_str, const int64_t size, int64_t fromPos)
 
std::vector< std::stringOpm::EclIO::readFormattedRealRawStrings (const std::string &file_str, const int64_t size, int64_t fromPos)
 
std::vector< boolOpm::EclIO::readFormattedLogiArray (const std::string &file_str, const int64_t size, int64_t fromPos)
 
std::vector< double > Opm::EclIO::readFormattedDoubArray (const std::string &file_str, const int64_t size, int64_t fromPos)