FT field_type changed to const FT & field_type in functions arguments
This commit is contained in:
@@ -148,7 +148,7 @@ void BaseExpression::after_generate_from_model()
|
||||
}
|
||||
|
||||
|
||||
bool BaseExpression::can_field_be_generated(FT)
|
||||
bool BaseExpression::can_field_be_generated(const FT &)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ bool BaseExpression::is_long_field_name(const PT::TextStream & field_name)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::put_field_name(const wchar_t * field_name, FT field_type, ModelEnv * model_env)
|
||||
void BaseExpression::put_field_name(const wchar_t * field_name, const FT & field_type, ModelEnv * model_env)
|
||||
{
|
||||
if( field_type.is_raw_field_name() )
|
||||
{
|
||||
@@ -283,7 +283,7 @@ void BaseExpression::put_short_field_name(const wchar_t * field_name, ModelEnv *
|
||||
|
||||
}
|
||||
|
||||
void BaseExpression::save_foreign_key(const wchar_t * field_name, FT field_type, ModelEnv * model_env)
|
||||
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;
|
||||
@@ -332,93 +332,93 @@ void BaseExpression::after_second_part_long_field_name()
|
||||
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(const std::wstring &, FT field_type)
|
||||
void BaseExpression::before_field_value(const std::wstring &, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(const std::string &, FT field_type)
|
||||
void BaseExpression::before_field_value(const std::string &, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(const std::wstring &, FT field_type)
|
||||
void BaseExpression::after_field_value(const std::wstring &, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(const std::string &, FT field_type)
|
||||
void BaseExpression::after_field_value(const std::string &, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(const wchar_t *, FT field_type)
|
||||
void BaseExpression::before_field_value(const wchar_t *, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(const wchar_t *, FT field_type)
|
||||
void BaseExpression::after_field_value(const wchar_t *, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(const char *, FT field_type)
|
||||
void BaseExpression::before_field_value(const char *, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(const char *, FT field_type)
|
||||
void BaseExpression::after_field_value(const char *, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(wchar_t, FT field_type)
|
||||
void BaseExpression::before_field_value(wchar_t, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(wchar_t, FT field_type)
|
||||
void BaseExpression::after_field_value(wchar_t, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value(char, FT field_type)
|
||||
void BaseExpression::before_field_value(char, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::after_field_value(char, FT field_type)
|
||||
void BaseExpression::after_field_value(char, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
void BaseExpression::before_field_value(const PT::Date &, FT field_type)
|
||||
void BaseExpression::before_field_value(const PT::Date &, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
void BaseExpression::after_field_value(const PT::Date &, FT field_type)
|
||||
void BaseExpression::after_field_value(const PT::Date &, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
|
||||
void BaseExpression::before_field_value(const PT::Space &, FT field_type)
|
||||
void BaseExpression::before_field_value(const PT::Space &, const FT & field_type)
|
||||
{
|
||||
before_field_value_string(field_type);
|
||||
}
|
||||
|
||||
void BaseExpression::after_field_value(const PT::Space &, FT field_type)
|
||||
void BaseExpression::after_field_value(const PT::Space &, const FT & field_type)
|
||||
{
|
||||
after_field_value_string(field_type);
|
||||
}
|
||||
@@ -448,7 +448,7 @@ void BaseExpression::char_to_hex(char c, PT::TextStream & stream)
|
||||
|
||||
|
||||
|
||||
void BaseExpression::esc(char val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(char val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
if( field_type.is_binary() || field_type.is_hexadecimal() )
|
||||
{
|
||||
@@ -461,13 +461,13 @@ void BaseExpression::esc(char val, PT::TextStream & stream, FT field_type)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(unsigned char val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(unsigned char val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
esc(static_cast<char>(val), stream, field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(wchar_t val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(wchar_t val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
if( field_type.use_utf8() )
|
||||
{
|
||||
@@ -487,7 +487,7 @@ void BaseExpression::esc(wchar_t val, PT::TextStream & stream, FT field_type)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
if( field_type.use_utf8() )
|
||||
{
|
||||
@@ -513,19 +513,19 @@ void BaseExpression::esc(const wchar_t * val, bool has_known_length, size_t len,
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const std::wstring & val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const std::wstring & val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
esc(val.c_str(), true, val.size(), stream, field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const wchar_t * val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const wchar_t * val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
esc(val, false, 0, stream, field_type);
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const std::string & val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const std::string & val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
for(size_t i = 0 ; i < val.size() ; ++i)
|
||||
{
|
||||
@@ -534,7 +534,7 @@ void BaseExpression::esc(const std::string & val, PT::TextStream & stream, FT fi
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const char * val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const char * val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
for(size_t i = 0 ; val[i] != 0 ; ++i)
|
||||
{
|
||||
@@ -543,7 +543,7 @@ void BaseExpression::esc(const char * val, PT::TextStream & stream, FT field_typ
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(bool val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(bool val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
if( val )
|
||||
stream << "true";
|
||||
@@ -552,80 +552,80 @@ void BaseExpression::esc(bool val, PT::TextStream & stream, FT field_type)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(short val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(short val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(unsigned short val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(unsigned short val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(int val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(int val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(unsigned int val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(unsigned int val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(long val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(long val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(unsigned long val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(unsigned long val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(long long val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(long long val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
// not implemented in PT::TextStream yet
|
||||
//stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(unsigned long long val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(unsigned long long val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
//stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(float val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(float val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(double val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(double val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(long double val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(long double val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
// IMPLEMENT ME in PT::TextStream
|
||||
//stream << val;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const PT::Date & date, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const PT::Date & date, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
stream << date;
|
||||
}
|
||||
|
||||
void BaseExpression::esc(const PT::TextStream & val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const PT::TextStream & val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
PT::TextStream::const_iterator i = val.begin();
|
||||
|
||||
@@ -635,7 +635,7 @@ void BaseExpression::esc(const PT::TextStream & val, PT::TextStream & stream, FT
|
||||
}
|
||||
}
|
||||
|
||||
void BaseExpression::esc(const PT::WTextStream & val, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const PT::WTextStream & val, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
PT::WTextStream::const_iterator i = val.begin();
|
||||
|
||||
@@ -645,7 +645,7 @@ void BaseExpression::esc(const PT::WTextStream & val, PT::TextStream & stream, F
|
||||
}
|
||||
}
|
||||
|
||||
void BaseExpression::esc(const PT::Space & space, PT::TextStream & stream, FT field_type)
|
||||
void BaseExpression::esc(const PT::Space & space, PT::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
PT::WTextStream tmp_stream;
|
||||
|
||||
@@ -763,11 +763,11 @@ void BaseExpression::esc(const PT::Space & space, PT::TextStream & stream, FT fi
|
||||
//}
|
||||
|
||||
|
||||
void BaseExpression::before_field_value_string(FT field_type)
|
||||
void BaseExpression::before_field_value_string(const FT & field_type)
|
||||
{
|
||||
}
|
||||
|
||||
void BaseExpression::after_field_value_string(FT field_type)
|
||||
void BaseExpression::after_field_value_string(const FT & field_type)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user