
Definition at line 63 of file filecdrinput.h.
| OSB_LIB::FileCdrInput::FileCdrInput | ( | ) |
Empty default constructor.
| OSB_LIB::FileCdrInput::FileCdrInput | ( | const FileCdrInput & | ) | [private] |
Prevent copying: not implemented.
| OsbError OSB_LIB::FileCdrInput::closeFile | ( | bool | rename | ) |
Close and rename the input file.
| rename | Flag to rename the file to "<file>.org". |
| OsbError OSB_LIB::FileCdrInput::endStream | ( | ) |
Finalize the processing of the input stream.
Terminates the processing of the input stream after the changes have been stored by calling save() and the resulting database transactions are commited.
| GetRet OSB_LIB::FileCdrInput::getAsn1 | ( | Asn1Reader & | reader, | |
| OsbError & | error | |||
| ) |
Get an ASN.1 record from the input file.
| reader | ASN.1 reader to use: gets the data. | |
| error | Gets error in case of a read error or if the ASN.1 record is not a CDR. |
| bool OSB_LIB::FileCdrInput::getNextStream | ( | const OSB_DB::Session & | session, | |
| const ModuleId | processor | |||
| ) |
Get the next record stream to process.
| session | Database session to use. The caller must commit (or rollback) the transactions! | |
| processor | Module that will process the record stream. |
| OsbError OSB_LIB::FileCdrInput::openFile | ( | const std::string & | baseDir | ) |
Open the input file.
| baseDir | Base directory of the CDR file. |
| FileCdrInput& OSB_LIB::FileCdrInput::operator= | ( | const FileCdrInput & | ) | [private] |
Prevent assignment: not implemented.
| bool OSB_LIB::FileCdrInput::restore | ( | OSB_DB::Session & | session | ) |
Restore to the original status.
| session | Database session (not used): changes are commited. |
| OsbError OSB_LIB::FileCdrInput::saveStream | ( | const OSB_DB::Session & | session | ) |
Save the processed stream.
| session | Database session to use. |
| bool OSB_LIB::FileCdrInput::setFailed | ( | const OSB_DB::Session & | session | ) |
Mark the input record stream as failed.
| session | Database session to use. |
CdrInputFile OSB_LIB::FileCdrInput::inFile_ [private] |
std::string OSB_LIB::FileCdrInput::orgInputName_ [private] |
The original name of the input file.
It is empty unless the file as been renamed.
Definition at line 214 of file filecdrinput.h.
1.4.7