start adding support for Ezc library - Ezc::Generator is able to get variable value and call a static function

This commit is contained in:
2021-05-31 18:40:28 +02:00
parent 284cbc5c66
commit 515e806a50
8 changed files with 321 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -83,6 +83,23 @@ 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()
{
if( expression_allocated )