OSB_LIB::EventCharges Class Reference

Collaboration diagram for OSB_LIB::EventCharges:

Collaboration graph
[legend]
List of all members.

Detailed Description

EventCharges is a list that links events (status changes or OSB events) to one or more OnetimeCharges.

Restrictions:

Definition at line 296 of file pricelist.h.

Public Types

Public Member Functions

Static Public Member Functions

Private Attributes

Friends


Member Typedef Documentation

typedef std::list<OnetimeChargeDef::Oid> OSB_LIB::EventCharges::ChargeList

List of onetime charge defintions for an event.

Definition at line 325 of file pricelist.h.

typedef std::map<EventId, ChargeList> OSB_LIB::EventCharges::EventChargeList

Map to hold onetime charges for an event.

Definition at line 328 of file pricelist.h.


Member Enumeration Documentation

enum OSB_LIB::EventCharges::EventId

Supported types of events.

Enumerator:
eventUnknown  Unknown event.
eventBilling  Recurring charges event.

Definition at line 301 of file pricelist.h.


Constructor & Destructor Documentation

OSB_LIB::EventCharges::EventCharges (  )  [inline]

Copy, destructor and assigment by compiler.

Definition at line 331 of file pricelist.h.


Member Function Documentation

int OSB_LIB::EventCharges::addEventCharge ( EventId  eventId,
const OnetimeChargeDef::Oid ocd 
)

Add a onetime charge for an event.

const EventChargeList& OSB_LIB::EventCharges::eventChargeList (  )  const [inline]

Return the event charge list.

Definition at line 342 of file pricelist.h.

References chargeList_.

int OSB_LIB::EventCharges::removeEventCharge ( EventId  eventId  ) 

Remove a event - onetime charge.

static EventId OSB_LIB::EventCharges::toEventId ( long  ei  )  [static]

Convert a long into an event id.

Parameters:
ei Value to convert.
Returns:
Event corresponding event id. Value is eventUnknown if `ei' is not supported.

static long OSB_LIB::EventCharges::toLong ( EventId  ei  )  [static]

Convert an event id to long.

Parameters:
ei Event id to convert.
Returns:
The corresponding long value. Value is (long)eventUnknown if `ei' is not supported.


Friends And Related Function Documentation

friend class OSB_DB::PricelistGw [friend]

Allow gateway access to private members.

Definition at line 298 of file pricelist.h.


Member Data Documentation

EventChargeList OSB_LIB::EventCharges::chargeList_ [private]

List of charges for events.

Definition at line 348 of file pricelist.h.

Referenced by eventChargeList().


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