ARB
Public Member Functions | Static Public Member Functions | List of all members
FieldTransfer::RuleSet Class Reference

#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 Ruleget (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 stringgetComment () 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)
 

Detailed Description

Definition at line 214 of file xferset.h.

Constructor & Destructor Documentation

FieldTransfer::RuleSet::RuleSet ( )
inline

Definition at line 223 of file xferset.h.

Member Function Documentation

bool FieldTransfer::RuleSet::empty ( ) const
inline

Definition at line 225 of file xferset.h.

size_t FieldTransfer::RuleSet::size ( ) const
inline

Definition at line 226 of file xferset.h.

Referenced by insertBefore(), and validIdx().

bool FieldTransfer::RuleSet::validIdx ( int  idx) const
inline

Definition at line 227 of file xferset.h.

References size().

Referenced by erase(), get(), getPtr(), insertBefore(), and replace().

void FieldTransfer::RuleSet::add ( RulePtr  rule)
inline

Definition at line 229 of file xferset.h.

Referenced by insertBefore().

RulePtr FieldTransfer::RuleSet::getPtr ( int  idx)
inline

Definition at line 231 of file xferset.h.

References validIdx(), and xf_assert.

const Rule& FieldTransfer::RuleSet::get ( int  idx) const
inline

Definition at line 235 of file xferset.h.

References validIdx(), and xf_assert.

void FieldTransfer::RuleSet::replace ( int  idx,
RulePtr  rule 
)
inline

Definition at line 239 of file xferset.h.

References SmartPtr< T, C >::isSet(), validIdx(), and xf_assert.

void FieldTransfer::RuleSet::erase ( int  idx)
inline

Definition at line 244 of file xferset.h.

References validIdx(), and xf_assert.

int FieldTransfer::RuleSet::insertBefore ( int  idx,
RulePtr  rule 
)
inline

Definition at line 248 of file xferset.h.

References add(), size(), and validIdx().

void FieldTransfer::RuleSet::setComment ( const string newComment)
inline

Definition at line 258 of file xferset.h.

const string& FieldTransfer::RuleSet::getComment ( ) const
inline

Definition at line 259 of file xferset.h.

Referenced by selected_fts_changed_cb().

bool FieldTransfer::RuleSet::shallTransferUndefFields ( ) const
inline

Definition at line 261 of file xferset.h.

Referenced by selected_fts_changed_cb().

void FieldTransfer::RuleSet::set_transferUndefFields ( bool  transferThem)
inline

Definition at line 262 of file xferset.h.

GB_ERROR FieldTransfer::RuleSet::transferBy ( GBDATA gb_source,
GBDATA gb_dest 
) const

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.

GB_ERROR FieldTransfer::RuleSet::saveTo ( const char filename) const
ErrorOrRuleSetPtr FieldTransfer::RuleSet::loadFrom ( const char filename)
static
void FieldTransfer::RuleSet::extractUsedFields ( StrArray &  input,
StrArray &  output 
) const

The documentation for this class was generated from the following files: