Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
Public Member Functions | Friends | List of all members
keyple::card::calypso::ElementaryFileAdapter Class Referencefinal

#include <ElementaryFileAdapter.h>

Inheritance diagram for keyple::card::calypso::ElementaryFileAdapter:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::ElementaryFileAdapter:
Collaboration graph
[legend]

Public Member Functions

 ElementaryFileAdapter (const uint8_t sfi)
 
 ElementaryFileAdapter (const std::shared_ptr< ElementaryFile > source)
 
ElementaryFile & setHeader (const std::shared_ptr< FileHeaderAdapter > header)
 
uint8_t getSfi () const override
 
const std::shared_ptr< FileHeader > getHeader () const override
 
const std::shared_ptr< FileData > getData () const override
 
bool operator== (const ElementaryFileAdapter &o) const
 
bool operator== (const std::shared_ptr< ElementaryFileAdapter > o) const
 

Friends

std::ostream & operator<< (std::ostream &os, const ElementaryFileAdapter &efa)
 
std::ostream & operator<< (std::ostream &os, const std::shared_ptr< ElementaryFileAdapter > efa)
 

Detailed Description

(package-private)
Implementation of ElementaryFile.

Since
2.0.0

Definition at line 38 of file ElementaryFileAdapter.h.

Constructor & Destructor Documentation

◆ ElementaryFileAdapter() [1/2]

keyple::card::calypso::ElementaryFileAdapter::ElementaryFileAdapter ( const uint8_t  sfi)

(package-private)
Constructor

Parameters
sfithe associated SFI.
Since
2.0.0

Definition at line 19 of file ElementaryFileAdapter.cpp.

◆ ElementaryFileAdapter() [2/2]

keyple::card::calypso::ElementaryFileAdapter::ElementaryFileAdapter ( const std::shared_ptr< ElementaryFile >  source)

(package-private)
Constructor used to create a clone of the provided EF.

Parameters
sourcethe EF to be cloned.
Since
2.0.0

Definition at line 22 of file ElementaryFileAdapter.cpp.

Member Function Documentation

◆ getData()

const std::shared_ptr< FileData > keyple::card::calypso::ElementaryFileAdapter::getData ( ) const
override

C++: return type is actually a FileDataAdapter

Since
2.0.0

Definition at line 45 of file ElementaryFileAdapter.cpp.

◆ getHeader()

const std::shared_ptr< FileHeader > keyple::card::calypso::ElementaryFileAdapter::getHeader ( ) const
override

C++: return type is actually a FileHeaderAdapter

Since
2.0.0

Definition at line 40 of file ElementaryFileAdapter.cpp.

◆ getSfi()

uint8_t keyple::card::calypso::ElementaryFileAdapter::getSfi ( ) const
override
Since
2.0.0

Definition at line 35 of file ElementaryFileAdapter.cpp.

◆ operator==() [1/2]

bool keyple::card::calypso::ElementaryFileAdapter::operator== ( const ElementaryFileAdapter o) const

Comparison is based on field "sfi".

Parameters
othe object to compare.
Returns
the comparison evaluation
Since
2.0.0

Definition at line 50 of file ElementaryFileAdapter.cpp.

◆ operator==() [2/2]

bool keyple::card::calypso::ElementaryFileAdapter::operator== ( const std::shared_ptr< ElementaryFileAdapter o) const

Comparison is based on field "sfi".

Parameters
othe object to compare.
Returns
the comparison evaluation
Since
2.0.0

Definition at line 55 of file ElementaryFileAdapter.cpp.

◆ setHeader()

ElementaryFile & keyple::card::calypso::ElementaryFileAdapter::setHeader ( const std::shared_ptr< FileHeaderAdapter header)

(package-private)
Sets the file header.

Parameters
headerthe file header (should be not null).
Returns
the current instance.
Since
2.0.0

Definition at line 28 of file ElementaryFileAdapter.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  os,
const ElementaryFileAdapter efa 
)
friend

Definition at line 68 of file ElementaryFileAdapter.cpp.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< ElementaryFileAdapter efa 
)
friend

Definition at line 79 of file ElementaryFileAdapter.cpp.


The documentation for this class was generated from the following files: