diff --git a/src/baseexpression.h b/src/baseexpression.h index 5bdfb3d..423e3d7 100644 --- a/src/baseexpression.h +++ b/src/baseexpression.h @@ -45,7 +45,7 @@ #include "convert/text.h" #ifdef MORM_HAS_EZC_LIBRARY -#include "funinfo.h" +#include "env.h" #endif diff --git a/src/model.h b/src/model.h index 7c4de9d..a3f06a8 100644 --- a/src/model.h +++ b/src/model.h @@ -51,7 +51,7 @@ #include "wrapper.h" #ifdef MORM_HAS_EZC_LIBRARY -#include "funinfo.h" +#include "env.h" #endif @@ -82,14 +82,14 @@ #ifdef MORM_HAS_EZC_LIBRARY #define MORM_MODEL_MEMBER_FIELD_EZC(ClassName) \ template \ - void field(const wchar_t * field_name, void (ClassName::*method)(Ezc::FunInfo &), const morm::FT & field_type = morm::FT::default_type) \ + void field(const wchar_t * field_name, void (ClassName::*method)(Ezc::Env &), const morm::FT & field_type = morm::FT::default_type) \ { \ field(field_name, field_name, method, field_type); \ } \ template \ - void field(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (ClassName::*method)(Ezc::FunInfo &), const morm::FT & field_type = morm::FT::default_type) \ + void field(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (ClassName::*method)(Ezc::Env &), const morm::FT & field_type = morm::FT::default_type) \ { \ - typedef void (Model::*ModelMember)(Ezc::FunInfo &); \ + typedef void (Model::*ModelMember)(Ezc::Env &); \ ModelMember model_member = static_cast(method); \ field_member_ezc(db_field_name, flat_field_name, model_member, field_type); \ } \ @@ -263,7 +263,7 @@ public: #ifdef MORM_HAS_EZC_LIBRARY template bool get_raw_value(const wchar_t * db_field_name, const wchar_t * flat_field_name, ModelData * model_data, - Ezc::FunInfo & fun_info, pt::Stream & stream, bool clear_stream = true) + Ezc::Env & fun_info, pt::Stream & stream, bool clear_stream = true) { if( clear_stream ) { @@ -286,7 +286,7 @@ public: try { fields(); - fun_info.res = model_env->ezc_fun_result; + //fun_info.res = model_env->ezc_fun_result; } catch(...) { @@ -907,7 +907,7 @@ protected: #ifdef MORM_HAS_EZC_LIBRARY template - void field_member_ezc(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (Model::*method)(Ezc::FunInfo &), const FT & field_type) + void field_member_ezc(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (Model::*method)(Ezc::Env &), const FT & field_type) { if( model_connector && model_env && model_env->ezc_fun_info && model_env->ezc_fun_info_typeinfo && model_env->model ) { @@ -930,16 +930,16 @@ protected: template - void field_member_ezc_put_field_value_to_stream(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (Model::*method)(Ezc::FunInfo &), const FT & field_type) + void field_member_ezc_put_field_value_to_stream(const wchar_t * db_field_name, const wchar_t * flat_field_name, void (Model::*method)(Ezc::Env &), const FT & field_type) { if( (is_empty_field(model_env->db_field_name) || is_the_same_field(db_field_name, model_env->db_field_name)) && (is_empty_field(model_env->flat_field_name) || is_the_same_field(flat_field_name, model_env->flat_field_name)) ) { model_env->was_field_found = true; - if( typeid(Ezc::FunInfo) == *model_env->ezc_fun_info_typeinfo ) + if( typeid(Ezc::Env) == *model_env->ezc_fun_info_typeinfo ) { - Ezc::FunInfo * ezc_fun_info = reinterpret_cast*>(model_env->ezc_fun_info); + Ezc::Env * ezc_fun_info = reinterpret_cast*>(model_env->ezc_fun_info); (model_env->model->*method)(*ezc_fun_info); model_env->ezc_fun_result = ezc_fun_info->res; // ezc_fun_info->res is overwritten in get_raw_value() after fields() method call so we have to remember it in model_env } diff --git a/src/modelenv.h b/src/modelenv.h index a4f35c6..2ef6462 100644 --- a/src/modelenv.h +++ b/src/modelenv.h @@ -44,7 +44,7 @@ #ifdef MORM_HAS_EZC_LIBRARY -#include "funinfo.h" +#include "env.h" #endif