#include "save_connection_data.h"
#include "string_formater.h"
#include "calc_well.h"
#include "rr_rw_wr_saver.h"
#include "well_type_helper.h"
#include "member_accessor.h"
Go to the source code of this file.
#define MEMBER_SAVER | ( | name | ) |
Value:
template <typename data_array_t, typename item_t> \ struct BOOST_PP_CAT (save_, name) \ { \ typedef item_t value_type; \ \ BOOST_PP_CAT (save_, name) (const data_array_t &data_, size_t size_j_) \ : data_ (data_) \ , size_j_ (size_j_) \ { \ } \ \ size_t \ size_i () const \ { \ return data_.size (); \ } \ \ size_t \ size_j () const \ { \ return size_j_; \ } \ \ item_t \ get (size_t i, size_t j) const \ { \ return data_[i].name[j]; \ } \ \ const data_array_t &data_; \ size_t size_j_; \ };
#define MEMBER_SAVER_2 | ( | name | ) |
Value:
template <typename data_array_t, typename item_t> \ struct BOOST_PP_CAT (save_, name) \ { \ typedef item_t value_type; \ \ BOOST_PP_CAT (save_, name) (const data_array_t &data_) \ : data_ (data_) \ { \ } \ \ size_t \ size_i () const \ { \ return data_.size (); \ } \ \ size_t \ size_j () const \ { \ return 1; \ } \ \ item_t \ get (size_t i, size_t j) const \ { \ return data_[i].name; \ } \ \ const data_array_t &data_; \ };
#define SAVE_BOOST_ARRAY | ( | name, | |||
size_j | ) |
Value:
tools::save_seq_vector (tools::string_formater (std::string (BOOST_PP_STRINGIZE(name)) + std::string (".bs.%d.txt"), iter_counter).str) \
.save_via_fn (debug::BOOST_PP_CAT (save_, name) <data_array_t, item_t> (calc_model_->data, size_j));
#define SAVE_ITEM | ( | name | ) |
Value:
tools::save_seq_vector (tools::string_formater (std::string (BOOST_PP_STRINGIZE(name)) + std::string (".bs.%d.txt"), iter_counter).str) \
.save_via_fn (debug::BOOST_PP_CAT (save_, name) <data_array_t, item_t> (calc_model_->data));