PIIOTextStream(PIString * string) now with mandatory Mode
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user