PIIOTextStream(PIString * string) now with mandatory Mode
This commit is contained in:
@@ -81,8 +81,8 @@ public:
|
||||
|
||||
//! \~english Contructs %PIIOTextStream for "string" string
|
||||
//! \~russian Создает %PIIOTextStream для строки "string"
|
||||
PIIOTextStream(PIString * string): PITextStream<PIIOBinaryStream>(&bin_stream) {
|
||||
io_string = new PIIOString(string);
|
||||
PIIOTextStream(PIString * string, PIIODevice::DeviceMode mode): PITextStream<PIIOBinaryStream>(&bin_stream) {
|
||||
io_string = new PIIOString(string, mode);
|
||||
bin_stream.setDevice(io_string);
|
||||
}
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ bool PIConnection::configure(PIConfig & conf, const PIString & name_) {
|
||||
|
||||
PIString PIConnection::makeConfig() const {
|
||||
PIString ret;
|
||||
PIIOTextStream ts(&ret);
|
||||
PIIOTextStream ts(&ret, PIIODevice::WriteOnly);
|
||||
ts << "[" << name() << "]\n";
|
||||
PIVector<PIIODevice *> devs(boundedDevices());
|
||||
int dn(-1);
|
||||
|
||||
Reference in New Issue
Block a user