Definition at line 84 of file recordstream.h.
typedef Id<RecordSource> OSB_LIB::RecordSource::Oid |
Default constructor with optional object id.
If oid is set call read() after construction to populate all data members.
Definition at line 103 of file recordstream.h.
OSB_LIB::RecordSource::RecordSource | ( | const std::string & | format, | |
ModuleId | generator | |||
) |
Constructor with generator and format.
Call read() after construction to populate all data members, including record source id.
format | Format of the output generated. | |
generator | Generator of record streams of this source. |
const std::string& OSB_LIB::RecordSource::basename | ( | ) | const [inline] |
Returns the basename of the file for this record source.
Definition at line 146 of file recordstream.h.
References basename_.
const std::string& OSB_LIB::RecordSource::directory | ( | ) | const [inline] |
Returns the name of the directory where the record streams are stored for this record source.
Definition at line 144 of file recordstream.h.
References directory_.
std::string OSB_LIB::RecordSource::filename | ( | long | seqNo | ) | const |
Create the filename for a sequence number.
seqNo | Sequence number to use. |
const std::string& OSB_LIB::RecordSource::format | ( | ) | const [inline] |
Returns the format of the RecordSource.
Definition at line 128 of file recordstream.h.
References format_.
ModuleId OSB_LIB::RecordSource::generator | ( | ) | const [inline] |
Returns the generator of this RecordSource.
Definition at line 132 of file recordstream.h.
References generator_.
const std::string& OSB_LIB::RecordSource::name | ( | ) | const [inline] |
Returns the name of the RecordSource.
Definition at line 126 of file recordstream.h.
References name_.
const Id2<NetworkElement>& OSB_LIB::RecordSource::neId | ( | ) | const [inline] |
Returns the network element id of the RecordSource.
Definition at line 139 of file recordstream.h.
References neId_.
Returns the network id of the RecordSource.
Definition at line 134 of file recordstream.h.
References neId_.
const Oid& OSB_LIB::RecordSource::oid | ( | ) | const [inline] |
Returns the unique object identifier.
Definition at line 124 of file recordstream.h.
References oid_.
ModuleId OSB_LIB::RecordSource::processor | ( | ) | const [inline] |
Returns the processor of this RecordSource.
Definition at line 130 of file recordstream.h.
References processor_.
bool OSB_LIB::RecordSource::read | ( | const OSB_DB::Session & | session | ) |
Read the record source from the database.
session | Database session to use. |
OsbException | in case of a database error. |
friend struct OSB_DB::RecordSourceGw [friend] |
friend struct OSB_DB::RecordStreamGw [friend] |
This is to access all the private attributes while filling the record stream info.
Definition at line 91 of file recordstream.h.
std::string OSB_LIB::RecordSource::basename_ [private] |
Basename for the record stream file.
Definition at line 187 of file recordstream.h.
Referenced by basename().
std::string OSB_LIB::RecordSource::directory_ [private] |
Directory where the record streams are stored.
Definition at line 185 of file recordstream.h.
Referenced by directory().
std::string OSB_LIB::RecordSource::format_ [private] |
ModuleId OSB_LIB::RecordSource::generator_ [private] |
Generator for this record source.
Definition at line 181 of file recordstream.h.
Referenced by generator().
std::string OSB_LIB::RecordSource::name_ [private] |
Id2<NetworkElement> OSB_LIB::RecordSource::neId_ [private] |
Unique identifier of the network element.
Definition at line 183 of file recordstream.h.
Referenced by neId(), and networkId().
Oid OSB_LIB::RecordSource::oid_ [private] |
Unique object identifier for the record source.
Definition at line 173 of file recordstream.h.
Referenced by oid().
ModuleId OSB_LIB::RecordSource::processor_ [private] |
Processor for this record source.
Definition at line 179 of file recordstream.h.
Referenced by processor().