OSB_LIB::SubsFuncCfg Class Reference

Collaboration diagram for OSB_LIB::SubsFuncCfg:

Collaboration graph
[legend]
List of all members.

Detailed Description

SubsFuncCfg holds configuration data common to all subscription functions and prodives access to them. that compute subscription charges. If a subscription function type needs more configuration than provided by this class, a configuration class should be public derived from this class.

Restrictions:

Definition at line 127 of file pricelist.h.

Public Types

Public Member Functions

Protected Types

Protected Member Functions

Protected Attributes

Private Member Functions

Friends


Member Typedef Documentation

typedef std::list<SubsChargeDef> OSB_LIB::SubsFuncCfg::ChargeList [protected]

Definition at line 131 of file pricelist.h.

typedef Id<SubsFuncCfg> OSB_LIB::SubsFuncCfg::Oid

Definition at line 133 of file pricelist.h.


Constructor & Destructor Documentation

OSB_LIB::SubsFuncCfg::SubsFuncCfg ( const Oid id,
SubsFuncType  sft 
) [inline]

Definition at line 135 of file pricelist.h.

virtual OSB_LIB::SubsFuncCfg::~SubsFuncCfg (  )  [inline, virtual]

copy constructor is protected and declared below

Definition at line 139 of file pricelist.h.

OSB_LIB::SubsFuncCfg::SubsFuncCfg ( const SubsFuncCfg rhs  )  [inline, protected]

internal copying only (until somebody needs it:-)

Definition at line 175 of file pricelist.h.


Member Function Documentation

void OSB_LIB::SubsFuncCfg::addSubsChargeDef ( const SubsChargeDef  ) 

Configuration: add a deep copy to the charges list.

void OSB_LIB::SubsFuncCfg::delSubsChargeDef ( const SubsChargeDef::Oid  ) 

const SubsChargeDef* OSB_LIB::SubsFuncCfg::findSubsChargeDef ( const StatusValue sv  )  const [inline]

Get the default charge for a status.

Definition at line 167 of file pricelist.h.

References findSubsChargeDef().

const SubsChargeDef* OSB_LIB::SubsFuncCfg::findSubsChargeDef ( const Status  )  const

Get the charge for a status.

const SubsChargeDef* OSB_LIB::SubsFuncCfg::findSubsChargeDef ( const SubsChargeDef::Oid  )  const

Get a subscription charge by id.

Referenced by findSubsChargeDef().

const std::string& OSB_LIB::SubsFuncCfg::name (  )  const [inline]

Name of subscription function.

Definition at line 144 of file pricelist.h.

References name_.

const Oid& OSB_LIB::SubsFuncCfg::oid (  )  const [inline]

Object id.

Definition at line 142 of file pricelist.h.

References id_.

SubsFuncCfg& OSB_LIB::SubsFuncCfg::operator= ( const SubsFuncCfg rhs  )  [private]

do not allow assignment

uint OSB_LIB::SubsFuncCfg::periodLength (  )  const [inline]

Subscription period length and unit.

Definition at line 150 of file pricelist.h.

References periodLength_.

virtual std::ostream& OSB_LIB::SubsFuncCfg::prInfo ( std::ostream &   )  const [virtual]

SubsFuncType OSB_LIB::SubsFuncCfg::sfType (  )  const [inline]

Type of subscription function.

Definition at line 147 of file pricelist.h.

References sfType_.

Unit::Oid OSB_LIB::SubsFuncCfg::unitId (  )  const [inline]

Definition at line 151 of file pricelist.h.

References unitId_.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const SubsFuncCfg  
) [friend]

friend class OSB_DB::PricelistGw [friend]

Definition at line 128 of file pricelist.h.

friend class ProductCatalogue [friend]

Definition at line 129 of file pricelist.h.


Member Data Documentation

ChargeList OSB_LIB::SubsFuncCfg::charges_ [protected]

list of subscription charges

Definition at line 188 of file pricelist.h.

std::string OSB_LIB::SubsFuncCfg::des_ [protected]

function description

Definition at line 181 of file pricelist.h.

Oid OSB_LIB::SubsFuncCfg::id_ [protected]

unique id: database link

Definition at line 179 of file pricelist.h.

Referenced by oid().

std::string OSB_LIB::SubsFuncCfg::name_ [protected]

function name

Definition at line 180 of file pricelist.h.

Referenced by name().

uint OSB_LIB::SubsFuncCfg::periodLength_ [protected]

subscription period length

Definition at line 185 of file pricelist.h.

Referenced by periodLength().

SubsFuncType OSB_LIB::SubsFuncCfg::sfType_ [protected]

subs. function type

Definition at line 182 of file pricelist.h.

Referenced by sfType().

char OSB_LIB::SubsFuncCfg::status_ [protected]

function status

Definition at line 184 of file pricelist.h.

Unit::Oid OSB_LIB::SubsFuncCfg::unitId_ [protected]

subscription period unit Id

Definition at line 186 of file pricelist.h.

Referenced by unitId().


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