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
+7 -7
View File
@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2022-2023, Tomasz Sowa
* Copyright (c) 2022-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,7 +57,7 @@ public:
virtual void set_root_element(const std::wstring & root_name);
virtual std::wstring & get_root_element();
void to_text(pt::TextStream & stream, Model & model, Export exp);
void to_text(pt::Stream & stream, Model & model, Export exp) override;
protected:
@@ -66,12 +66,12 @@ protected:
bool put_root_element;
std::wstring root_element_name;
void allocate_default_expression();
void allocate_default_expression() override;
virtual void put_doctype_definition(pt::TextStream & stream);
virtual void put_opening_root_element(pt::TextStream & stream);
virtual void put_closing_root_element(pt::TextStream & stream);
virtual void put_root_element_name(pt::TextStream & stream);
virtual void put_doctype_definition(pt::Stream & stream);
virtual void put_opening_root_element(pt::Stream & stream);
virtual void put_closing_root_element(pt::Stream & stream);
virtual void put_root_element_name(pt::Stream & stream);
};