Merge branch 'topic/bernhard/input-logging-commmon-functions' into topic/bernhard/sqlite

This commit is contained in:
Bernhard Amann 2012-12-03 14:02:06 -08:00
commit b3dba9f0cc
4 changed files with 6 additions and 8 deletions

View file

@ -12,21 +12,19 @@ AsciiInputOutput::AsciiInputOutput(threading::MsgThread* 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)
{
thread = t;
this->separator = separator;
this->set_separator = set_separator;
this->unset_field = unset_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)
{
thread = t;
this->separator = separator;
this->set_separator = set_separator;
this->unset_field = unset_field;
}

View file

@ -14,13 +14,13 @@ class AsciiInputOutput {
// Constructor that defines all separators, etc.
// 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);
// Constructor that defines all separators, etc, besides empty_field, which is not needed for many
// non-ascii-based io sources.
// 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);
~AsciiInputOutput();

View file

@ -68,7 +68,7 @@ Ascii::Ascii(ReaderFrontend *frontend) : ReaderBackend(frontend)
unset_field.assign( (const char*) BifConst::InputAscii::unset_field->Bytes(),
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()

View file

@ -52,7 +52,7 @@ Ascii::Ascii(WriterFrontend* frontend) : WriterBackend(frontend)
desc.EnableEscaping();
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()