The class create a round rule of appropriate type based on the (hardcoded) type identifier of the round rule class.
The class is purely static, no object of the class should be instantiated: The default and copy constructors are declared private and not implemented.
Definition at line 425 of file roundrule.h.
OSB_LIB::RoundRuleFactory::RoundRuleFactory | ( | ) | [private] |
Prevent construction: not implemented.
OSB_LIB::RoundRuleFactory::RoundRuleFactory | ( | const RoundRuleFactory & | rhs | ) | [private] |
Prevent construction: not implemented.
static RoundRule::AutoPtr OSB_LIB::RoundRuleFactory::create | ( | const RoundRule::Type & | type, | |
const RoundRule::Oid & | oid, | |||
const std::string & | name, | |||
const std::string & | desc, | |||
const Decimal & | threshold, | |||
const Decimal & | multiple | |||
) | [static] |
Create a round rule.
type | Identifies the type of round rule to create. | |
oid | Object id of the new round rule. | |
name | Name of the new round rule. | |
desc | Description of the new round rule. | |
threshold | Threshold of rounding Up rule. | |
multiple | Rounding "grid spacing". |
OsbException | It throws OsbException(16) if threshold and multiple is null for RoundUp rounding rule; It throws OsbException(18) if threshold and multiple is not null for DontRound rounding rule. |
static RoundRule::AutoPtr OSB_LIB::RoundRuleFactory::create | ( | const RoundRule::Type & | type, | |
const RoundRule::Oid & | oid, | |||
const Decimal & | threshold, | |||
const Decimal & | multiple | |||
) | [static] |
Create a round rule.
type | Identifies the type of round rule to create. | |
oid | Object id of the new round rule. | |
threshold | Threshold of rounding Up rule. | |
multiple | Rounding "grid spacing". |
OsbException | It throws OsbException(16) if threshold and multiple is null for RoundUp rounding rule; It throws OsbException(18) if threshold and multiple is not null for DontRound rounding rule. |