Definition at line 369 of file callaccounting.h.
typedef std::set<ModuleId> OSB_LIB::CaResults::Modules |
typedef std::map<RsId, CaStreamResult> OSB_LIB::CaResults::Results |
STL container to store all call accounting results.
It only contains streams added with add() or read().
Definition at line 379 of file callaccounting.h.
const CaStreamResult& OSB_LIB::CaResults::add | ( | const CaStreamResult & | caRes | ) |
Add the call accounting of one record stream.
caRes | The call accounting of a record stream to add, it should be read from the database (see CaStreamResult::read()) before calling this function. |
const CaStreamResult& OSB_LIB::CaResults::read | ( | const OSB_DB::Session & | session, | |
const RsId & | rsId | |||
) |
Read call accounting of one record stream from database and add (or replace) to results_.
session | Database session to use. | |
rsId | Id of the record stream to query, it should be an incoming record stream (else no rows will be selected). |
bool OSB_LIB::CaResults::result | ( | CaModuleResult & | modRes | ) | const |
Get call accounting results for a module.
modRes | Module result to populate. |
const CaStreamResult& OSB_LIB::CaResults::result | ( | const RsId & | rsId | ) |
Call accounting results for a record stream.
const Results& OSB_LIB::CaResults::results | ( | ) | const |
Call accounting results by record stream.
Modules OSB_LIB::CaResults::modules_ [private] |
Results OSB_LIB::CaResults::results_ [private] |