and thinking about it, ascii-io doesn't need the separator

This commit is contained in:
Bernhard Amann 2012-12-03 14:01:50 -08:00
parent 22f2fc009c
commit 86c724caa0
4 changed files with 6 additions and 8 deletions

View file

@ -12,21 +12,19 @@ AsciiInputOutput::AsciiInputOutput(threading::MsgThread* t)
thread = t; thread = t;
} }
AsciiInputOutput::AsciiInputOutput(threading::MsgThread* t, const string & separator, const string & set_separator, AsciiInputOutput::AsciiInputOutput(threading::MsgThread* t, const string & set_separator,
const string & unset_field, const string & empty_field) const string & unset_field, const string & empty_field)
{ {
thread = t; thread = t;
this->separator = separator;
this->set_separator = set_separator; this->set_separator = set_separator;
this->unset_field = unset_field; this->unset_field = unset_field;
this->empty_field = empty_field; this->empty_field = empty_field;
} }
AsciiInputOutput::AsciiInputOutput(threading::MsgThread* t, const string & separator, const string & set_separator, AsciiInputOutput::AsciiInputOutput(threading::MsgThread* t, const string & set_separator,
const string & unset_field) const string & unset_field)
{ {
thread = t; thread = t;
this->separator = separator;
this->set_separator = set_separator; this->set_separator = set_separator;
this->unset_field = unset_field; this->unset_field = unset_field;
} }

View file

@ -14,13 +14,13 @@ class AsciiInputOutput {
// Constructor that defines all separators, etc. // Constructor that defines all separators, etc.
// Use if you need either ValToODesc or EntryToVal. // Use if you need either ValToODesc or EntryToVal.
AsciiInputOutput(threading::MsgThread*, const string & separator, const string & set_separator, AsciiInputOutput(threading::MsgThread*, const string & set_separator,
const string & unset_field, const string & empty_field); const string & unset_field, const string & empty_field);
// Constructor that defines all separators, etc, besides empty_field, which is not needed for many // Constructor that defines all separators, etc, besides empty_field, which is not needed for many
// non-ascii-based io sources. // non-ascii-based io sources.
// Use if you need either ValToODesc or EntryToVal. // Use if you need either ValToODesc or EntryToVal.
AsciiInputOutput(threading::MsgThread*, const string & separator, const string & set_separator, AsciiInputOutput(threading::MsgThread*, const string & set_separator,
const string & unset_field); const string & unset_field);
~AsciiInputOutput(); ~AsciiInputOutput();

View file

@ -68,7 +68,7 @@ Ascii::Ascii(ReaderFrontend *frontend) : ReaderBackend(frontend)
unset_field.assign( (const char*) BifConst::InputAscii::unset_field->Bytes(), unset_field.assign( (const char*) BifConst::InputAscii::unset_field->Bytes(),
BifConst::InputAscii::unset_field->Len()); BifConst::InputAscii::unset_field->Len());
io = new AsciiInputOutput(this, separator, set_separator, unset_field, empty_field); io = new AsciiInputOutput(this, set_separator, unset_field, empty_field);
} }
Ascii::~Ascii() Ascii::~Ascii()

View file

@ -52,7 +52,7 @@ Ascii::Ascii(WriterFrontend* frontend) : WriterBackend(frontend)
desc.EnableEscaping(); desc.EnableEscaping();
desc.AddEscapeSequence(separator); desc.AddEscapeSequence(separator);
io = new AsciiInputOutput(this, separator, set_separator, unset_field, empty_field); io = new AsciiInputOutput(this, set_separator, unset_field, empty_field);
} }
Ascii::~Ascii() Ascii::~Ascii()