EclUtil.hpp
Go to the documentation of this file.
6 OPM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
42 Opm::filesystem::path findFileCaseInsensitive(const Opm::filesystem::path& folder, const std::string& filename);
50 uint64_t sizeOnDiskFormatted(const int64_t num, Opm::EclIO::eclArrType arrType, int elementSize);
62 std::vector<T> readBinaryArray(std::fstream& fileH, const int64_t size, Opm::EclIO::eclArrType type,
71 std::vector<std::string> readBinaryC0nnArray(std::fstream& fileH, const int64_t size, int elementSize);
77 std::vector<int> readFormattedInteArray(const std::string& file_str, const int64_t size, int64_t fromPos);
82 std::vector<float> readFormattedRealArray(const std::string& file_str, const int64_t size, int64_t fromPos);
83 std::vector<std::string> readFormattedRealRawStrings(const std::string& file_str, const int64_t size, int64_t fromPos);
85 std::vector<bool> readFormattedLogiArray(const std::string& file_str, const int64_t size, int64_t fromPos);
86 std::vector<double> readFormattedDoubArray(const std::string& file_str, const int64_t size, int64_t fromPos);
bool is_number(const std::string &numstr) float flipEndianFloat(float num) int64_t flipEndianLongInt(int64_t num) std::vector< float > readBinaryRealArray(std::fstream &fileH, const int64_t size) std::vector< std::string > readBinaryCharArray(std::fstream &fileH, const int64_t size) std::vector< unsigned int > readBinaryRawLogiArray(std::fstream &fileH, const int64_t size) std::string trimr(const std::string &str1) bool isEqualCaseInsensitive(const std::string &string1, const std::string &string2) std::tuple< int, int > block_size_data_binary(eclArrType arrType) uint64_t sizeOnDiskFormatted(const int64_t num, Opm::EclIO::eclArrType arrType, int elementSize) uint64_t sizeOnDiskBinary(int64_t num, Opm::EclIO::eclArrType arrType, int elementSize) std::vector< T > readBinaryArray(std::fstream &fileH, const int64_t size, Opm::EclIO::eclArrType type, std::function< T(T2)> &flip, int elementSize) double flipEndianDouble(double num) void readBinaryHeader(std::fstream &fileH, std::string &tmpStrName, int &tmpSize, std::string &tmpStrType) void readFormattedHeader(std::fstream &fileH, std::string &arrName, int64_t &num, Opm::EclIO::eclArrType &arrType, int &elementSize) bool fileExists(const std::string &filename) int flipEndianInt(int num) std::vector< T > readFormattedArray(const std::string &file_str, const int size, int64_t fromPos, std::function< T(const std::string &)> &process) std::vector< std::string > readFormattedCharArray(const std::string &file_str, const int64_t size, int64_t fromPos, int elementSize) std::vector< int > readBinaryInteArray(std::fstream &fileH, const int64_t size) bool isFormatted(const std::string &filename) bool isEOF(std::fstream *fileH) std::vector< std::string > readBinaryC0nnArray(std::fstream &fileH, const int64_t size, int elementSize) std::vector< int > readFormattedInteArray(const std::string &file_str, const int64_t size, int64_t fromPos) Opm::filesystem::path findFileCaseInsensitive(const Opm::filesystem::path &folder, const std::string &filename) std::vector< float > readFormattedRealArray(const std::string &file_str, const int64_t size, int64_t fromPos) std::vector< double > readFormattedDoubArray(const std::string &file_str, const int64_t size, int64_t fromPos) std::vector< bool > readFormattedLogiArray(const std::string &file_str, const int64_t size, int64_t fromPos) std::vector< std::string > readFormattedRealRawStrings(const std::string &file_str, const int64_t size, int64_t fromPos) std::tuple< int, int, int > block_size_data_formatted(eclArrType arrType) std::vector< bool > readBinaryLogiArray(std::fstream &fileH, const int64_t size) std::vector< double > readBinaryDoubArray(std::fstream &fileH, const int64_t size) Definition: A.hpp:4 T process(const operator_type operation, const T arg) Definition: exprtk.hpp:5101 |