use pt::Stream instead of pt::TextStream as the output stream

This commit is contained in:
2024-05-30 00:01:59 +02:00
parent e026af9994
commit 9a3f6a6e36
33 changed files with 615 additions and 636 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018-2023, Tomasz Sowa
* Copyright (c) 2018-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -92,26 +92,18 @@ int BaseExpression::get_output_type()
pt::TextStream * BaseExpression::get_text_stream()
pt::Stream * BaseExpression::get_text_stream()
{
return out_stream;
}
void BaseExpression::set_text_stream(pt::TextStream * out_stream)
void BaseExpression::set_text_stream(pt::Stream * out_stream)
{
this->out_stream = out_stream;
}
pt::TextStream * BaseExpression::get_current_stream()
{
return out_stream;
}
void BaseExpression::allow_to_use_prefix(bool use_prefix)
{
this->use_prefix = use_prefix;
@@ -125,14 +117,14 @@ bool BaseExpression::get_allow_to_use_prefix()
void BaseExpression::generate_from_model(pt::TextStream & stream, Model & model)
void BaseExpression::generate_from_model(pt::Stream & stream, Model & model)
{
FT field_type = FT::default_type;
generate_from_model(stream, model, field_type);
}
void BaseExpression::generate_from_model(pt::TextStream & stream, Model & model, const FT & field_type)
void BaseExpression::generate_from_model(pt::Stream & stream, Model & model, const FT & field_type)
{
this->out_stream = &stream;
generate_from_model(model, field_type);
@@ -281,7 +273,7 @@ void BaseExpression::put_value_list_closing_index(size_t index, const FT & field
void BaseExpression::save_foreign_key(const wchar_t * field_name, const FT & field_type, ModelEnv * model_env)
{
pt::TextStream str;
pt::TextStream * old_out_stream = out_stream;
pt::Stream * old_out_stream = out_stream;
out_stream = &str;
put_field_name(field_name, field_type, model_env);
@@ -459,14 +451,14 @@ char BaseExpression::char_to_hex_part(char c)
}
void BaseExpression::char_to_hex(char c, pt::TextStream & stream)
void BaseExpression::char_to_hex(char c, pt::Stream & stream)
{
stream << char_to_hex_part(((unsigned char)c) >> 4);
stream << char_to_hex_part(((unsigned char)c) & 0x0f);
}
void BaseExpression::char_to_hex(wchar_t c, pt::TextStream & stream)
void BaseExpression::char_to_hex(wchar_t c, pt::Stream & stream)
{
unsigned int z = static_cast<unsigned int>(c);
@@ -482,7 +474,7 @@ void BaseExpression::char_to_hex(wchar_t c, pt::TextStream & stream)
* return true if the val character was escaped and put (or ignored) to the stream
*
*/
bool BaseExpression::esc_char(char val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
bool BaseExpression::esc_char(char val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
return esc_char((wchar_t)(unsigned char)val, stream, field_type, model_env);
}
@@ -491,16 +483,16 @@ bool BaseExpression::esc_char(char val, pt::TextStream & stream, const FT & fiel
/*
* return true if the val character was escaped and put (or ignored) to the stream
*
* in most caces you have to provide your own esc_char(wchar_t val, pt::TextStream & stream) method
* in most cases you have to provide your own esc_char(wchar_t val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env) method
*
*/
bool BaseExpression::esc_char(wchar_t val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
bool BaseExpression::esc_char(wchar_t val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
return false;
}
void BaseExpression::esc(char val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(char val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( field_type.is_binary() || field_type.is_hexadecimal() )
{
@@ -516,13 +508,13 @@ void BaseExpression::esc(char val, pt::TextStream & stream, const FT & field_typ
}
void BaseExpression::esc(unsigned char val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(unsigned char val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
esc(static_cast<char>(val), stream, field_type, model_env);
}
void BaseExpression::esc(wchar_t val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(wchar_t val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( field_type.is_binary() || field_type.is_hexadecimal() )
{
@@ -550,7 +542,7 @@ void BaseExpression::esc(wchar_t val, pt::TextStream & stream, const FT & field_
}
void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( field_type.is_numeric() )
{
@@ -563,7 +555,7 @@ void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len,
}
void BaseExpression::esc(const char * val, bool has_known_length, size_t len, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const char * val, bool has_known_length, size_t len, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( field_type.is_numeric() )
{
@@ -576,31 +568,31 @@ void BaseExpression::esc(const char * val, bool has_known_length, size_t len, pt
}
void BaseExpression::esc(const std::wstring & val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const std::wstring & val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
esc(val.c_str(), true, val.size(), stream, field_type, model_env);
}
void BaseExpression::esc(const wchar_t * val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const wchar_t * val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
esc(val, false, 0, stream, field_type, model_env);
}
void BaseExpression::esc(const std::string & val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const std::string & val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
esc(val.c_str(), true, val.size(), stream, field_type, model_env);
}
void BaseExpression::esc(const char * val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const char * val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
esc(val, false, 0, stream, field_type, model_env);
}
void BaseExpression::esc(bool val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(bool val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( val )
stream << "true";
@@ -609,73 +601,73 @@ void BaseExpression::esc(bool val, pt::TextStream & stream, const FT & field_typ
}
void BaseExpression::esc(short val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(short val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(unsigned short val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(unsigned short val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(int val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(int val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(unsigned int val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(unsigned int val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(long val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(long val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(unsigned long val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(unsigned long val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(long long val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(long long val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(unsigned long long val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(unsigned long long val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(float val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(float val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(double val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(double val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(long double val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(long double val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
stream << val;
}
void BaseExpression::esc(const pt::Date & date, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const pt::Date & date, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
if( field_type.is_date_only() )
{
@@ -700,7 +692,7 @@ void BaseExpression::esc(const pt::Date & date, pt::TextStream & stream, const F
}
void BaseExpression::esc(const pt::TextStream & val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const pt::TextStream & val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
pt::TextStream::const_iterator i = val.begin();
@@ -711,7 +703,7 @@ void BaseExpression::esc(const pt::TextStream & val, pt::TextStream & stream, co
}
void BaseExpression::esc(const pt::WTextStream & val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const pt::WTextStream & val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
pt::WTextStream::const_iterator i = val.begin();
@@ -722,7 +714,7 @@ void BaseExpression::esc(const pt::WTextStream & val, pt::TextStream & stream, c
}
void BaseExpression::esc(const pt::Space & space, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env)
void BaseExpression::esc(const pt::Space & space, pt::Stream & stream, const FT & field_type, ModelEnv * model_env)
{
pt::WTextStream tmp_stream;
bool pretty_print = field_type.is_pretty_print();
@@ -736,110 +728,113 @@ void BaseExpression::esc(const pt::Space & space, pt::TextStream & stream, const
}
//void BaseExpression::put_type(char val, pt::TextStream & stream)
//void BaseExpression::put_type(char val, pt::Stream & stream)
//{
// stream << "char";
//}
//
//void BaseExpression::put_type(unsigned char val, pt::TextStream & stream)
//void BaseExpression::put_type(unsigned char val, pt::Stream & stream)
//{
// stream << "unsigned char";
//}
//
//
//void BaseExpression::put_type(const std::wstring & val, pt::TextStream & stream)
//void BaseExpression::put_type(const std::wstring & val, pt::Stream & stream)
//{
// stream << "text";
//}
//
//void BaseExpression::put_type(const wchar_t * val, pt::TextStream & stream)
//void BaseExpression::put_type(const wchar_t * val, pt::Stream & stream)
//{
// stream << "text";
//}
//
//
//void BaseExpression::put_type(const std::string & val, pt::TextStream & stream)
//void BaseExpression::put_type(const std::string & val, pt::Stream & stream)
//{
// stream << "text";
//}
//
//void BaseExpression::put_type(const char * val, pt::TextStream & stream)
//void BaseExpression::put_type(const char * val, pt::Stream & stream)
//{
// stream << "text";
//}
//
//
//void BaseExpression::put_type(bool val, pt::TextStream & stream)
//void BaseExpression::put_type(bool val, pt::Stream & stream)
//{
// stream << "boolean";
//}
//
//void BaseExpression::put_type(short val, pt::TextStream & stream)
//void BaseExpression::put_type(short val, pt::Stream & stream)
//{
// stream << "short integer";
//}
//
//void BaseExpression::put_type(unsigned short val, pt::TextStream & stream)
//void BaseExpression::put_type(unsigned short val, pt::Stream & stream)
//{
// stream << "unsigned short integer";
//}
//
//void BaseExpression::put_type(int val, pt::TextStream & stream)
//void BaseExpression::put_type(int val, pt::Stream & stream)
//{
// stream << "integer";
//}
//
//void BaseExpression::put_type(unsigned int val, pt::TextStream & stream)
//void BaseExpression::put_type(unsigned int val, pt::Stream & stream)
//{
// stream << "unsigned integer";
//}
//
//void BaseExpression::put_type(long val, pt::TextStream & stream)
//void BaseExpression::put_type(long val, pt::Stream & stream)
//{
// stream << "long integer";
//}
//
//void BaseExpression::put_type(unsigned long val, pt::TextStream & stream)
//void BaseExpression::put_type(unsigned long val, pt::Stream & stream)
//{
// stream << "unsigned long integer";
//}
//
//void BaseExpression::put_type(long long val, pt::TextStream & stream)
//void BaseExpression::put_type(long long val, pt::Stream & stream)
//{
// stream << "very long integer";
//}
//
//void BaseExpression::put_type(unsigned long long val, pt::TextStream & stream)
//void BaseExpression::put_type(unsigned long long val, pt::Stream & stream)
//{
// stream << "unsigned very long integer";
//}
//
//void BaseExpression::put_type(float val, pt::TextStream & stream)
//void BaseExpression::put_type(float val, pt::Stream & stream)
//{
// stream << "float";
//}
//
//void BaseExpression::put_type(double val, pt::TextStream & stream)
//void BaseExpression::put_type(double val, pt::Stream & stream)
//{
// stream << "double";
//}
//
//void BaseExpression::put_type(long double val, pt::TextStream & stream)
//void BaseExpression::put_type(long double val, pt::Stream & stream)
//{
// stream << "long double";
//}
//
////void BaseExpression::put_type(void* val, pt::TextStream & stream)
////void BaseExpression::put_type(void* val, pt::Stream & stream)
////{
////}
//
//
//void BaseExpression::put_type(const pt::Date & date, pt::TextStream & stream)
//void BaseExpression::put_type(const pt::Date & date, pt::Stream & stream)
//{
// stream << "date";
//}
//
//void BaseExpression::put_type(const Model & model, pt::TextStream & stream)
//void BaseExpression::put_type(const Model & model, pt::Stream & stream)
//{
// stream << "object";
//}
@@ -1087,8 +1082,7 @@ void BaseExpression::put_stream(const pt::WTextStream & str, const FT & field_ty
}
void BaseExpression::schema_table_to_stream(pt::TextStream & stream, const wchar_t * schema_name, const wchar_t * table_name)
void BaseExpression::schema_table_to_stream(pt::Stream & stream, const wchar_t * schema_name, const wchar_t * table_name)
{
this->out_stream = &stream;
put_schema_table(schema_name, table_name);
@@ -1096,7 +1090,7 @@ void BaseExpression::schema_table_to_stream(pt::TextStream & stream, const wchar
}
void BaseExpression::schema_table_to_stream(pt::TextStream & stream, const pt::WTextStream & schema_name, const pt::WTextStream & table_name)
void BaseExpression::schema_table_to_stream(pt::Stream & stream, const pt::WTextStream & schema_name, const pt::WTextStream & table_name)
{
this->out_stream = &stream;
put_schema_table(schema_name, table_name);
@@ -1104,7 +1098,7 @@ void BaseExpression::schema_table_to_stream(pt::TextStream & stream, const pt::W
}
void BaseExpression::table_to_stream(pt::TextStream & stream, const wchar_t * table_name)
void BaseExpression::table_to_stream(pt::Stream & stream, const wchar_t * table_name)
{
this->out_stream = &stream;
put_table(table_name);
@@ -1112,7 +1106,7 @@ void BaseExpression::table_to_stream(pt::TextStream & stream, const wchar_t * ta
}
void BaseExpression::table_to_stream(pt::TextStream & stream, const pt::WTextStream & table_name)
void BaseExpression::table_to_stream(pt::Stream & stream, const pt::WTextStream & table_name)
{
this->out_stream = &stream;
put_table(table_name);
@@ -1120,7 +1114,7 @@ void BaseExpression::table_to_stream(pt::TextStream & stream, const pt::WTextStr
}
void BaseExpression::table_with_index_to_stream(pt::TextStream & stream, const wchar_t * table_name, int index)
void BaseExpression::table_with_index_to_stream(pt::Stream & stream, const wchar_t * table_name, int index)
{
this->out_stream = &stream;
put_table_with_index(table_name, index);
@@ -1128,7 +1122,7 @@ void BaseExpression::table_with_index_to_stream(pt::TextStream & stream, const w
}
void BaseExpression::table_with_index_to_stream(pt::TextStream & stream, const pt::WTextStream & table_name, int index)
void BaseExpression::table_with_index_to_stream(pt::Stream & stream, const pt::WTextStream & table_name, int index)
{
this->out_stream = &stream;
put_table_with_index(table_name, index);
@@ -1136,7 +1130,7 @@ void BaseExpression::table_with_index_to_stream(pt::TextStream & stream, const p
}
void BaseExpression::table_with_index_and_field_to_stream(pt::TextStream & stream, const wchar_t * table_name, int index, const wchar_t * field_name, const FT & field_type)
void BaseExpression::table_with_index_and_field_to_stream(pt::Stream & stream, const wchar_t * table_name, int index, const wchar_t * field_name, const FT & field_type)
{
this->out_stream = &stream;
put_table_with_index_and_field(table_name, index, field_name, field_type);
@@ -1144,7 +1138,7 @@ void BaseExpression::table_with_index_and_field_to_stream(pt::TextStream & strea
}
void BaseExpression::table_with_index_and_field_to_stream(pt::TextStream & stream, const pt::WTextStream & table_name, int index, const wchar_t * field_name, const FT & field_type)
void BaseExpression::table_with_index_and_field_to_stream(pt::Stream & stream, const pt::WTextStream & table_name, int index, const wchar_t * field_name, const FT & field_type)
{
this->out_stream = &stream;
put_table_with_index_and_field(table_name, index, field_name, field_type);
@@ -1152,7 +1146,7 @@ void BaseExpression::table_with_index_and_field_to_stream(pt::TextStream & strea
}
void BaseExpression::table_and_field_to_stream(pt::TextStream & stream, const wchar_t * table_name, const wchar_t * field_name, const FT & field_type)
void BaseExpression::table_and_field_to_stream(pt::Stream & stream, const wchar_t * table_name, const wchar_t * field_name, const FT & field_type)
{
this->out_stream = &stream;
put_table_and_field(table_name, field_name, field_type);
@@ -1160,7 +1154,7 @@ void BaseExpression::table_and_field_to_stream(pt::TextStream & stream, const wc
}
void BaseExpression::table_and_field_to_stream(pt::TextStream & stream, const pt::WTextStream & table_name, const wchar_t * field_name, const FT & field_type)
void BaseExpression::table_and_field_to_stream(pt::Stream & stream, const pt::WTextStream & table_name, const wchar_t * field_name, const FT & field_type)
{
this->out_stream = &stream;
put_table_and_field(table_name, field_name, field_type);
@@ -1168,7 +1162,7 @@ void BaseExpression::table_and_field_to_stream(pt::TextStream & stream, const pt
}
void BaseExpression::alias_to_stream(pt::TextStream & stream, const pt::WTextStream & alias_name, int index)
void BaseExpression::alias_to_stream(pt::Stream & stream, const pt::WTextStream & alias_name, int index)
{
this->out_stream = &stream;
put_alias(alias_name, index);
@@ -1176,7 +1170,7 @@ void BaseExpression::alias_to_stream(pt::TextStream & stream, const pt::WTextStr
}
void BaseExpression::alias_to_stream(pt::TextStream & stream, const pt::WTextStream & alias_name_prefix, int index, const wchar_t * alias_name_postfix)
void BaseExpression::alias_to_stream(pt::Stream & stream, const pt::WTextStream & alias_name_prefix, int index, const wchar_t * alias_name_postfix)
{
this->out_stream = &stream;
put_alias(alias_name_prefix, index, alias_name_postfix);
@@ -1186,7 +1180,7 @@ void BaseExpression::alias_to_stream(pt::TextStream & stream, const pt::WTextStr
void BaseExpression::string_to_stream(pt::TextStream & stream, const char * str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::string_to_stream(pt::Stream & stream, const char * str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes, model_env);
@@ -1194,7 +1188,7 @@ void BaseExpression::string_to_stream(pt::TextStream & stream, const char * str,
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const wchar_t * str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::string_to_stream(pt::Stream & stream, const wchar_t * str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes, model_env);
@@ -1202,7 +1196,7 @@ void BaseExpression::string_to_stream(pt::TextStream & stream, const wchar_t * s
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const std::string & str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::string_to_stream(pt::Stream & stream, const std::string & str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes, model_env);
@@ -1210,7 +1204,7 @@ void BaseExpression::string_to_stream(pt::TextStream & stream, const std::string
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const std::wstring & str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::string_to_stream(pt::Stream & stream, const std::wstring & str, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes, model_env);
@@ -1218,7 +1212,7 @@ void BaseExpression::string_to_stream(pt::TextStream & stream, const std::wstrin
}
void BaseExpression::stream_to_stream(pt::TextStream & stream_out, const pt::TextStream & stream_in, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::stream_to_stream(pt::Stream & stream_out, const pt::TextStream & stream_in, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream_out;
put_stream(stream_in, field_type, add_quotes, model_env);
@@ -1226,7 +1220,7 @@ void BaseExpression::stream_to_stream(pt::TextStream & stream_out, const pt::Tex
}
void BaseExpression::stream_to_stream(pt::TextStream & stream_out, const pt::WTextStream & stream_in, const FT & field_type, bool add_quotes, ModelEnv * model_env)
void BaseExpression::stream_to_stream(pt::Stream & stream_out, const pt::WTextStream & stream_in, const FT & field_type, bool add_quotes, ModelEnv * model_env)
{
this->out_stream = &stream_out;
put_stream(stream_in, field_type, add_quotes, model_env);
@@ -1234,8 +1228,6 @@ void BaseExpression::stream_to_stream(pt::TextStream & stream_out, const pt::WTe
}
bool BaseExpression::is_empty_field(const wchar_t * value)
{
return (!value || *value == '\0');