Definition at line 208 of file sumcdr.h.
OSB_LIB::SumCdr01::SumCdr01 | ( | ) | [inline] |
OSB_LIB::SumCdr01::SumCdr01 | ( | const Id< BsPage > & | page, | |
const Cdr & | cdr, | |||
const UsedService & | us | |||
) |
Set balance page and grouping criteria for a Cdr and UsedService.
The CDR and used service are not added to the list of CDRs.
void OSB_LIB::SumCdr01::add | ( | Cdr & | cdr | ) | [virtual] |
Add a Cdr.
cdr | CDR to add. The summary CDR removes all used services from cdr it accounts for, i.e., match its grouping criteria. |
Implements OSB_LIB::SumCdr.
virtual void OSB_LIB::SumCdr01::insert | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Insert a summary call details record into database.
This function should be implemented by all concrete derived classes to insert all relevant data members into their corresponding database tables.
This function should not write the CDRs to the filesystem. See class CdrIo for this.
Make use of helper functions provided by class OSB_DB::SumCdrGw to store base class data.
session | Database session. |
Implements OSB_LIB::SumCdr.
bool OSB_LIB::SumCdr01::match | ( | const Cdr & | cdr, | |
const UsedService & | us | |||
) | const [virtual] |
Check if a used service matches the grouping criteria.
cdr | CDR to match (currently not used). | |
us | Used service to match. |
Reimplemented from OSB_LIB::SumCdr.
UdrType OSB_LIB::SumCdr01::udrType | ( | ) | const [virtual] |
virtual bool OSB_LIB::SumCdr01::update | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Update a summary call details record in the database.
This function should be implemented by all concrete derived classes to update a summary call details record based on the grouping criteria. In addition, it has to determine and set the object id (required by the base class update functions).
This function should not update the filesystem. See class CdrIo for this.
Make use of helper functions provided by class OSB_DB::SumCdrGw to update base class data.
session | Database session. |
Implements OSB_LIB::SumCdr.
friend class SumCdr01Gw [friend] |
const Udr::UdrType OSB_LIB::SumCdr01::type_ = Udr::sumcdr01 [static, private] |