OSB_LIB::Asn1ToMoneyInfo Class Reference

Inheritance diagram for OSB_LIB::Asn1ToMoneyInfo:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::Asn1ToMoneyInfo:

Collaboration graph
[legend]
List of all members.

Detailed Description

Convert ASN.1 encoded data into MoneyInfo.

The MoneyInfo contains Money and charge traits id as members. Since the class Money does not have a default constructor, this decoder will contain the minimum number of the members of the Money class which will help me to later construct a money object.

This is also the reason why I have not created a Money decoder.

Definition at line 1420 of file cdrasn1.h.

Public Member Functions

Private Attributes

Used to construct Money:

Member Function Documentation

size_t OSB_LIB::Asn1ToMoneyInfo::operator() ( Asn1Info src,
OsbErrors errors 
) [virtual]

Decode constructed ASN.1 data.

Parameters:
src Constructed ASN.1 type to decode.
errors Buffer for decoding errors.
Returns:
0 in case of success, else the number of errors that occurred.

Implements OSB_LIB::Asn1Decoder.

const MoneyInfo OSB_LIB::Asn1ToMoneyInfo::value (  )  const [inline]

Construct a money info from decoded data.

Definition at line 1429 of file cdrasn1.h.

References amount_, chargeTraitsId_, and currency_.


Member Data Documentation

Decimal OSB_LIB::Asn1ToMoneyInfo::amount_ [private]

The value of the money.

Definition at line 1442 of file cdrasn1.h.

Referenced by value().

ChargeTraits::Oid OSB_LIB::Asn1ToMoneyInfo::chargeTraitsId_ [private]

Charge traits identifier associated with the charge.

Definition at line 1446 of file cdrasn1.h.

Referenced by value().

Currency::Oid OSB_LIB::Asn1ToMoneyInfo::currency_ [private]

The currency code of the Money object to be created.

Definition at line 1439 of file cdrasn1.h.

Referenced by value().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:15:01 2006 for OSB Library by  doxygen 1.4.7