99 virtual std::shared_ptr<FileHeader>
getHeader()
const = 0;
107 virtual const std::shared_ptr<FileData>
getData()
const = 0;
118 std::ostringstream sfi;
119 sfi << std::uppercase << std::hex << std::setfill(
'0') << std::setw(2)
120 <<
static_cast<int>(ef.
getSfi());
122 os <<
"ELEMENTARY_FILE: {"
123 <<
"SFI: " << sfi.str() <<
"h";
131 os <<
", HEADER: set";
134 os <<
", " << ef.
getData() <<
"}";
143 operator<<(std::ostream& os,
const std::shared_ptr<ElementaryFile> ef) {
145 os <<
"ELEMENTARY_FILE: null";
159 const std::vector<std::shared_ptr<ElementaryFile>>& ef) {
160 os <<
"ELEMENTARY_FILES: {";
162 for (
auto it = ef.begin(); it != ef.end(); it++) {
163 if (it != ef.begin()) {
Type
The different types of EF.
@ COUNTERS
A Counters EF is made of a single record containing an ordered sequence of K counters of three bytes ...
@ CYCLIC
A Cyclic EF is made of 1 to several records organized in a cycle, from the most recent (record #1) to...
@ BINARY
A Binary EF contains a single continuous sequence of data bytes from byte #0 (first byte) to byte #N−...
@ LINEAR
A Linear EF is made of 1 to several records.
@ SIMULATED_COUNTERS
A Simulated Counter EF is a linear file with a single record.
virtual std::shared_ptr< FileHeader > getHeader() const =0
Gets the file header.
friend std::ostream & operator<<(std::ostream &os, const ElementaryFile &ef)
virtual const std::shared_ptr< FileData > getData() const =0
Gets the file data.
virtual uint8_t getSfi() const =0
Gets the associated SFI.