PIIOTextStream(PIString * string) now with mandatory Mode

This commit is contained in:
2024-05-02 21:35:29 +03:00
parent d97798d063
commit a86e8f7b58
2 changed files with 3 additions and 3 deletions

View File

@@ -81,8 +81,8 @@ public:
//! \~english Contructs %PIIOTextStream for "string" string //! \~english Contructs %PIIOTextStream for "string" string
//! \~russian Создает %PIIOTextStream для строки "string" //! \~russian Создает %PIIOTextStream для строки "string"
PIIOTextStream(PIString * string): PITextStream<PIIOBinaryStream>(&bin_stream) { PIIOTextStream(PIString * string, PIIODevice::DeviceMode mode): PITextStream<PIIOBinaryStream>(&bin_stream) {
io_string = new PIIOString(string); io_string = new PIIOString(string, mode);
bin_stream.setDevice(io_string); bin_stream.setDevice(io_string);
} }

View File

@@ -260,7 +260,7 @@ bool PIConnection::configure(PIConfig & conf, const PIString & name_) {
PIString PIConnection::makeConfig() const { PIString PIConnection::makeConfig() const {
PIString ret; PIString ret;
PIIOTextStream ts(&ret); PIIOTextStream ts(&ret, PIIODevice::WriteOnly);
ts << "[" << name() << "]\n"; ts << "[" << name() << "]\n";
PIVector<PIIODevice *> devs(boundedDevices()); PIVector<PIIODevice *> devs(boundedDevices());
int dn(-1); int dn(-1);