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

#include <xferset.h>

Inheritance diagram for FieldTransfer::Rule:
Inheritance graph
[legend]
Collaboration diagram for FieldTransfer::Rule:
Collaboration graph
[legend]

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 stringgetACI () const
 
const stringgetSourceFields () const
 
const stringgetSeparator () 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 stringtargetField () 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
 

Detailed Description

Definition at line 170 of file xferset.h.

Constructor & Destructor Documentation

FieldTransfer::Rule::Rule ( const ReadRule howRead,
const WriteRule howWrite 
)
inline

Definition at line 174 of file xferset.h.

Referenced by makeAciConverter(), and makeSimple().

Member Function Documentation

GB_ERROR FieldTransfer::Rule::transferBy ( GBDATA gb_source,
GBDATA gb_dest 
) const
static RulePtr FieldTransfer::Rule::makeSimple ( const string src,
const string sep,
const string dest 
)
inlinestatic
static RulePtr FieldTransfer::Rule::makeAciConverter ( const char src,
const char sep,
const char aci,
const char dest 
)
inlinestatic
ErrorOrRulePtr FieldTransfer::Rule::makeFromConfig ( const char config)
static
static RulePtr FieldTransfer::Rule::forceTargetType ( GB_TYPES  forceType,
RulePtr  rule 
)
inlinestatic

Definition at line 186 of file xferset.h.

bool FieldTransfer::Rule::precisionLossPermitted ( ) const
inline

Definition at line 191 of file xferset.h.

Referenced by permitPrecisionLoss().

void FieldTransfer::Rule::permitPrecisionLoss ( )
inline

Definition at line 194 of file xferset.h.

References precisionLossPermitted(), and xf_assert.

static RulePtr FieldTransfer::Rule::permitPrecisionLoss ( RulePtr  rule)
inlinestatic

Definition at line 198 of file xferset.h.

string FieldTransfer::Rule::getConfig ( ) const
string FieldTransfer::Rule::getShortDescription ( ) const

Definition at line 544 of file xferset.cxx.

Referenced by refresh_rule_selection_box_cb().


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