ARB
|
#include <xferset.h>
Public Member Functions | |
Rule (const ReadRule &howRead, const WriteRule &howWrite) | |
__ATTR__USERESULT GB_ERROR | transferBy (GBDATA *gb_source, GBDATA *gb_dest) const |
bool | precisionLossPermitted () const |
void | permitPrecisionLoss () |
string | getConfig () const |
string | getShortDescription () const |
Public Member Functions inherited from FieldTransfer::ReadRule | |
ReadRule (const string &fields_, const string &separator_) | |
ReadRule (const char *fields_, const char *separator_, const char *aci_) | |
TransportedData | readFrom (GBDATA *gb_item, GBDATA *gb_dest_item) const |
const string & | getACI () const |
const string & | getSourceFields () const |
const string & | getSeparator () const |
bool | multiple_source_fields () const |
Public Member Functions inherited from FieldTransfer::WriteRule | |
WriteRule (const string &name_) | |
WriteRule (const char *name_, GB_TYPES forceType) | |
GB_ERROR | check_hkey () const |
const string & | targetField () const |
bool | forcesType () const |
GB_TYPES | getTargetType () const |
void | setTargetType (GB_TYPES forceType) |
__ATTR__USERESULT GB_ERROR | writeTo (const TransportedData &data, GBDATA *gb_item, bool acceptLossyConversion) const |
Static Public Member Functions | |
static RulePtr | makeSimple (const string &src, const string &sep, const string &dest) |
static RulePtr | makeAciConverter (const char *src, const char *sep, const char *aci, const char *dest) |
static ErrorOrRulePtr | makeFromConfig (const char *config) |
static RulePtr | forceTargetType (GB_TYPES forceType, RulePtr rule) |
static RulePtr | permitPrecisionLoss (RulePtr rule) |
Additional Inherited Members | |
Protected Member Functions inherited from FieldTransfer::ReadRule | |
void | saveReadConfig (ConfigMapping &cfgmap) const |
string | describe () const |
Protected Member Functions inherited from FieldTransfer::WriteRule | |
void | saveWriteConfig (ConfigMapping &cfgmap) const |
string | describe () const |
Definition at line 174 of file xferset.h.
Referenced by makeAciConverter(), and makeSimple().
apply one rule (as part of transfer).
Definition at line 285 of file xferset.cxx.
References error(), FieldTransfer::TransportedData::exists(), FieldTransfer::TransportedData::failed(), GB_have_error(), FieldTransfer::TransportedData::getError(), NULp, and xf_assert.
Referenced by FieldTransfer::RuleSet::transferBy().
|
inlinestatic |
Definition at line 182 of file xferset.h.
References FieldTransfer::ReadRule::ReadRule(), Rule(), and FieldTransfer::WriteRule::WriteRule().
|
inlinestatic |
Definition at line 183 of file xferset.h.
References FieldTransfer::ReadRule::ReadRule(), Rule(), and FieldTransfer::WriteRule::WriteRule().
|
static |
Definition at line 485 of file xferset.cxx.
References ACI, error(), GB_TYPE_MAX, GB_TYPE_readable_as_string(), GBS_global_string(), ConfigMapping::get_entry(), LOSS, NOSEP, ConfigMapping::parseFrom(), PERMITTED, SEP, SmartPtr< T, C >::setNull(), SOURCE, FieldTransfer::str2type(), TARGET, type, and xf_assert.
|
inline |
Definition at line 191 of file xferset.h.
Referenced by permitPrecisionLoss().
|
inline |
Definition at line 194 of file xferset.h.
References precisionLossPermitted(), and xf_assert.
string FieldTransfer::Rule::getConfig | ( | ) | const |
Definition at line 472 of file xferset.cxx.
References ConfigMapping::config_string(), LOSS, PERMITTED, and ConfigMapping::set_entry().
Referenced by FieldTransfer::RuleSet::saveTo().
string FieldTransfer::Rule::getShortDescription | ( | ) | const |
Definition at line 544 of file xferset.cxx.
Referenced by refresh_rule_selection_box_cb().