41 explicit EclFile(
const std::string& filename,
bool preload =
false);
42 EclFile(
const std::string& filename,
Formatted fmt,
bool preload =
false);
43 bool formattedInput()
const {
return formatted; }
46 void loadData(
const std::string& arrName);
47 void loadData(
int arrIndex);
48 void loadData(
const std::vector<int>& arrIndex);
58 std::fill(arrayLoaded.begin(), arrayLoaded.end(),
false);
61 using EclEntry = std::tuple<std::string, eclArrType, std::int64_t>;
62 std::vector<EclEntry> getList()
const;
64 const std::vector<int>& getElementSizeList()
const {
return array_element_size; }
67 const std::vector<T>& get(
int arrIndex);
70 const std::vector<T>& get(
const std::string& name);
72 bool hasKey(
const std::string &name)
const;
73 std::size_t count(
const std::string& name)
const;
75 const std::vector<std::string>& arrayNames()
const {
return array_name; }
76 std::size_t size()
const;
81 std::string inputFilename;
83 std::unordered_map<int, std::vector<int>> inte_array;
84 std::unordered_map<int, std::vector<bool>> logi_array;
85 std::unordered_map<int, std::vector<double>> doub_array;
86 std::unordered_map<int, std::vector<float>> real_array;
87 std::unordered_map<int, std::vector<std::string>> char_array;
89 std::vector<std::string> array_name;
90 std::vector<eclArrType> array_type;
91 std::vector<std::int64_t> array_size;
92 std::vector<int> array_element_size;
94 std::vector<std::uint64_t> ifStreamPos;
96 std::map<std::string, int> array_index;
99 const std::vector<T>& getImpl(
int arrIndex, eclArrType type,
100 const std::unordered_map<
int, std::vector<T>>& array,
101 const std::string& typeStr);
104 seekPosition(
const std::vector<std::string>::size_type arrIndex)
const;
107 std::vector<bool> arrayLoaded;
109 void loadBinaryArray(std::fstream& fileH, std::size_t arrIndex);
110 void loadFormattedArray(
const std::string& fileStr, std::size_t arrIndex, std::int64_t fromPos);
111 void load(
bool preload);
113 std::vector<unsigned int> get_bin_logi_raw_values(
int arrIndex)
const;
114 std::vector<std::string> get_fmt_real_raw_str_values(
int arrIndex)
const;
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30