ecl_unsmry_loader.hpp
Go to the documentation of this file.
1#include <string>
2#include <array>
3#include <vector>
4#include <map>
5
8
9namespace ecl {
10
12public:
13 unsmry_loader(const ecl_smspec_type * smspec, const std::string& filename, int file_options);
15
16 std::vector<double> get_vector(int pos) const;
17 std::vector<double> sim_seconds() const;
18 std::vector<time_t> sim_time() const;
19 int length() const;
20
21 time_t iget_sim_time(int time_index) const;
22 double iget_sim_seconds(int time_index) const;
23 std::vector<int> report_steps(int offset) const;
24 double iget(int time_index, int params_index) const;
25
26private:
27 int size; //Number of entries in the smspec index
28 int time_index;
29 int time_seconds;
30 time_t sim_start;
31 int m_length; //Number of PARAMS in the UNSMRY file
32
33 std::array<int,3> date_index;
34 ecl_file_type * file;
35 ecl_file_view_type * file_view;
36};
37
38
39
40
41
42
43
44}
struct ecl_file_struct ecl_file_type
Definition: ECLResultData.hpp:39
const char *const string
Definition: cJSON.h:170
Definition: ecl_unsmry_loader.hpp:11
int length() const
std::vector< time_t > sim_time() const
double iget(int time_index, int params_index) const
double iget_sim_seconds(int time_index) const
std::vector< double > get_vector(int pos) const
unsmry_loader(const ecl_smspec_type *smspec, const std::string &filename, int file_options)
std::vector< int > report_steps(int offset) const
time_t iget_sim_time(int time_index) const
std::vector< double > sim_seconds() const
struct ecl_file_view_struct ecl_file_view_type
Definition: ecl_file_view.hpp:50
struct ecl_smspec_struct ecl_smspec_type
Definition: ecl_smspec.hpp:32
Definition: ecl_box.hpp:26