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-2022, Tomasz Sowa
* Copyright (c) 2018-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@ class PostgreSQLExpression : public DbExpression
{
public:
DbExpression & page(pt::TextStream & stream, size_t page_number, size_t page_size);
DbExpression & page(pt::Stream & stream, size_t page_number, size_t page_size) override;
protected:
@@ -55,10 +55,10 @@ protected:
private:
void before_field_value_string(const FT & field_type, ModelEnv * model_env);
void after_field_value_string(const FT & field_type, ModelEnv * model_env);
void before_field_value_string(const FT & field_type, ModelEnv * model_env) override;
void after_field_value_string(const FT & field_type, ModelEnv * model_env) override;
bool esc_char(wchar_t val, pt::TextStream & stream, const FT & field_type, ModelEnv * model_env);
bool esc_char(wchar_t val, pt::Stream & stream, const FT & field_type, ModelEnv * model_env) override;
};