ARB
|
#include <xferset.h>
Public Member Functions | |
RuleSet () | |
bool | empty () const |
size_t | size () const |
bool | validIdx (int idx) const |
void | add (RulePtr rule) |
RulePtr | getPtr (int idx) |
const Rule & | get (int idx) const |
void | replace (int idx, RulePtr rule) |
void | erase (int idx) |
int | insertBefore (int idx, RulePtr rule) |
void | setComment (const string &newComment) |
const string & | getComment () const |
bool | shallTransferUndefFields () const |
void | set_transferUndefFields (bool transferThem) |
__ATTR__USERESULT GB_ERROR | transferBy (GBDATA *gb_source, GBDATA *gb_dest) const |
__ATTR__USERESULT GB_ERROR | saveTo (const char *filename) const |
void | extractUsedFields (StrArray &input, StrArray &output) const |
Static Public Member Functions | |
static ErrorOrRuleSetPtr | loadFrom (const char *filename) |
|
inline |
Definition at line 226 of file xferset.h.
Referenced by insertBefore(), and validIdx().
|
inline |
|
inline |
Definition at line 229 of file xferset.h.
Referenced by insertBefore().
Definition at line 231 of file xferset.h.
References validIdx(), and xf_assert.
Definition at line 235 of file xferset.h.
References validIdx(), and xf_assert.
Definition at line 239 of file xferset.h.
References SmartPtr< T, C >::isSet(), validIdx(), and xf_assert.
|
inline |
Definition at line 244 of file xferset.h.
References validIdx(), and xf_assert.
Definition at line 248 of file xferset.h.
References add(), size(), and validIdx().
|
inline |
|
inline |
Definition at line 259 of file xferset.h.
Referenced by selected_fts_changed_cb().
|
inline |
Definition at line 261 of file xferset.h.
Referenced by selected_fts_changed_cb().
|
inline |
transfer field data by applying all rules.
Definition at line 306 of file xferset.cxx.
References error(), GB_have_error(), GBS_global_string(), NULp, FieldTransfer::Rule::transferBy(), and xf_assert.
Definition at line 323 of file xferset.cxx.
References error(), fputc(), fputs(), GB_IO_error(), GBT_split_string(), FieldTransfer::Rule::getConfig(), and NULp.
Referenced by createRuleset_cb().
|
static |
Definition at line 368 of file xferset.cxx.
References ARB_ERROR::deliver(), error(), GB_IO_error(), GBS_global_string(), ErrorOr< TYPE >::getError(), LineReader::getLine(), ErrorOr< TYPE >::getValue(), ErrorOr< TYPE >::hasError(), line, SmartPtr< T, C >::setNull(), and FieldTransfer::shallIgnore().
Referenced by mg_xfer_via_fts().
void FieldTransfer::RuleSet::extractUsedFields | ( | StrArray & | input, |
StrArray & | output | ||
) | const |
Definition at line 39 of file xferset.cxx.
References GBT_split_string(), FieldTransfer::ReadRule::getSourceFields(), FieldTransfer::ReadRule::multiple_source_fields(), CharPtrArray::size(), FieldTransfer::StrSet2StrArray(), and FieldTransfer::WriteRule::targetField().