start adding support for Ezc library - Ezc::Generator is able to get variable value and call a static function
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user