42 explicit EclFile(
const std::string& filename,
bool preload =
false);
44 bool formattedInput()
const {
return formatted; }
47 void loadData(
const std::string& arrName);
48 void loadData(
int arrIndex);
49 void loadData(
const std::vector<int>& arrIndex);
60 using EclEntry = std::tuple<std::string, eclArrType, std::int64_t>;
61 std::vector<EclEntry> getList()
const;
63 const std::vector<int>& getElementSizeList()
const {
return array_element_size; }
66 const std::vector<T>& get(
int arrIndex);
69 const std::vector<T>& get(
const std::string& name);
71 bool hasKey(
const std::string &name)
const;
72 std::size_t count(
const std::string& name)
const;
74 const std::vector<std::string>& arrayNames()
const {
return array_name; }
75 std::size_t size()
const;
80 std::string inputFilename;
82 std::unordered_map<int, std::vector<int>> inte_array;
83 std::unordered_map<int, std::vector<bool>> logi_array;
84 std::unordered_map<int, std::vector<double>> doub_array;
85 std::unordered_map<int, std::vector<float>> real_array;
86 std::unordered_map<int, std::vector<std::string>> char_array;
88 std::vector<std::string> array_name;
89 std::vector<eclArrType> array_type;
90 std::vector<std::int64_t> array_size;
91 std::vector<int> array_element_size;
93 std::vector<std::uint64_t> ifStreamPos;
95 std::map<std::string, int> array_index;
98 const std::vector<T>& getImpl(
int arrIndex, eclArrType type,
99 const std::unordered_map<
int, std::vector<T>>& array,
100 const std::string& typeStr);
103 seekPosition(
const std::vector<std::string>::size_type arrIndex)
const;
106 std::vector<bool> arrayLoaded;
108 void loadBinaryArray(std::fstream& fileH, std::size_t arrIndex);
109 void loadFormattedArray(
const std::string& fileStr, std::size_t arrIndex, std::int64_t fromPos);
110 void load(
bool preload);
112 std::vector<unsigned int> get_bin_logi_raw_values(
int arrIndex)
const;
113 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