mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge branch 'topic/bernhard/input-logging-commmon-functions' into topic/bernhard/sqlite
This commit is contained in:
commit
b3dba9f0cc
4 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue