changed the way how we get a specific field value - now we do not use expressions (BaseExpression), to get the raw value we don't need an expression object:
- removed MORM_WORK_MODE_GET_SPECIFIC_FIELD_VALUE from expression work mode - removed: void BaseExpression::field(const wchar_t * field_name, void (Model::*getter_method)(pt::TextStream &), const FT & field_type, ModelEnv * model_env) - removed from BaseExpression: template<typename FunInfoStreamType> void field(const wchar_t * field_name, void (Model::*fun)(Ezc::FunInfo<FunInfoStreamType> &), const FT & field_type, ModelEnv * model_env) - removed: void FlatConnector::to_text(const wchar_t * flat_field_name, pt::TextStream & stream, Model & model) - renamed/changed: Model::put_field_value(...) -> Model::get_raw_value() added classes: class ModelWrapper - base wrapper class for a model or a model container class ModelWrapperModel : public ModelWrapper - wrapper for a model template<typename VectorType> class ModelWrapperVector : public ModelWrapper - wrapper for vector of models template<typename ListType> class ModelWrapperList : public ModelWrapper - wrapper for list of models ModelWrapper... classes are used by ezc library for iterating through child models and for iterating in [for...] statements added to Model: Model * get_model(const wchar_t * db_field_name, const wchar_t * flat_field_name, bool put_log_if_not_found = true); ModelWrapper * get_model_wrapper(const wchar_t * db_field_name, const wchar_t * flat_field_name, bool put_log_if_not_found = true);
This commit is contained in:
@@ -83,22 +83,6 @@ void FlatConnector::to_text(pt::TextStream & stream, Model & model)
|
||||
|
||||
|
||||
|
||||
void FlatConnector::to_text(const wchar_t * flat_field_name, pt::TextStream & stream, Model & model)
|
||||
{
|
||||
allocate_default_expression_if_needed();
|
||||
|
||||
if( flat_expression && model.model_env )
|
||||
{
|
||||
flat_expression->clear();
|
||||
flat_expression->set_work_mode(MORM_WORK_MODE_GET_SPECIFIC_FIELD_VALUE);
|
||||
flat_expression->allow_to_use_prefix(false);
|
||||
model.model_env->flat_field_name = flat_field_name;
|
||||
flat_expression->generate_from_model(stream, model);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void FlatConnector::deallocate_expression()
|
||||
{
|
||||
|
Reference in New Issue
Block a user