This class is responsible to store the Cdr that belongs to a network partner balance sheet to file system (writing them to CDR file(s) in the corresponding balance page directory structure).
Definition at line 77 of file cdrio.h.
virtual OSB_LIB::CdrIo::~CdrIo | ( | ) | [virtual] |
Empty virtual destructor.
virtual std::auto_ptr<CdrIo> OSB_LIB::CdrIo::clone | ( | ) | const [pure virtual] |
virtual bool OSB_LIB::CdrIo::commitChanges | ( | ) | [pure virtual] |
Remove backup CDR files.
Implemented in OSB_LIB::CdrIoImpl.
virtual void OSB_LIB::CdrIo::prepareWrite | ( | ) | [pure virtual] |
Prepare the CDR files for writing.
OsbException | for any error encountered. |
Implemented in OSB_LIB::CdrIoImpl.
virtual void OSB_LIB::CdrIo::read | ( | CdrList & | dest | ) | [pure virtual] |
Retrieve the call details records of a balance page.
dest | STL-container to store the CDR records. |
OsbException | for any error encountered. |
Implemented in OSB_LIB::CdrIoImpl.
virtual bool OSB_LIB::CdrIo::remove | ( | ) | [pure virtual] |
Remove related CDR files and directories from file system.
This function deletes all regular CDR files and, if empty, the directories below and including baseDir_.
Implemented in OSB_LIB::CdrIoImpl.
virtual void OSB_LIB::CdrIo::replace | ( | const CdrList & | newCdrs, | |
Asn1Writer & | writer | |||
) | [pure virtual] |
Replace CDRs on the file system.
newCdrs | STL container with new CDRs. | |
writer | ASN.1 writer to use. |
OsbException | for any error encountered. |
Implemented in OSB_LIB::CdrIoImpl.
static void OSB_LIB::CdrIo::setBaseDir | ( | const std::string & | dir | ) | [static] |
Set the base directory.
virtual bool OSB_LIB::CdrIo::undoChanges | ( | ) | [pure virtual] |
Undo a previous call to write() or replace().
Implemented in OSB_LIB::CdrIoImpl.
virtual void OSB_LIB::CdrIo::write | ( | const CdrList & | cdrs, | |
Asn1Writer & | writer | |||
) | [pure virtual] |
Write CDRs to the file system.
cdrs | List of call details records to write. | |
writer | ASN.1 writer to use. |
OsbException | for any error encountered. |
Implemented in OSB_LIB::CdrIoImpl.
std::string OSB_LIB::CdrIo::baseDir_ [static] |
long OSB_LIB::CdrIo::maxFileSize_ [static] |