add Model::field(...) methods with a pt::Stream argument

This commit is contained in:
2024-06-04 10:24:05 +02:00
parent 90b4d9af0b
commit cd067ae5c3
9 changed files with 145 additions and 11 deletions

View File

@@ -475,6 +475,17 @@ protected:
field_model(field_name, field_name, field_value, field_type);
}
void field(const wchar_t * field_name, pt::Stream & field_value, const FT & field_type = FT::default_type)
{
field_generic(field_name, field_name, field_value, field_type);
}
template<typename char_type, size_t stack_size, size_t heap_block_size>
void field(const wchar_t * field_name, pt::TextStreamBase<char_type, stack_size, heap_block_size> & field_value, const FT & field_type = FT::default_type)
{
field_generic(field_name, field_name, field_value, field_type);
}
template<typename ContainerItemType>
void field(const wchar_t * field_name, std::list<ContainerItemType> & field_value, const FT & field_type = FT::default_type)
{
@@ -605,6 +616,17 @@ protected:
field_model(db_field_name, flat_field_name, field_value, field_type);
}
void field(const wchar_t * db_field_name, const wchar_t * flat_field_name, pt::Stream & field_value, const FT & field_type = FT::default_type)
{
field_generic(db_field_name, flat_field_name, field_value, field_type);
}
template<typename char_type, size_t stack_size, size_t heap_block_size>
void field(const wchar_t * db_field_name, const wchar_t * flat_field_name, pt::TextStreamBase<char_type, stack_size, heap_block_size> & field_value, const FT & field_type = FT::default_type)
{
field_generic(db_field_name, flat_field_name, field_value, field_type);
}
template<typename ContainerItemType>
void field(const wchar_t * db_field_name, const wchar_t * flat_field_name, std::list<ContainerItemType> & field_value, const FT & field_type = FT::default_type)
{
@@ -875,6 +897,7 @@ protected:
}
void field_member_set_field_value(
const wchar_t * db_field_name,
const wchar_t * flat_field_name,