Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Friends | List of all members
keyple::calypso::transaction::ElementaryFile Class Referencefinal

#include <ElementaryFile.h>

Public Member Functions

 ElementaryFile (const uint8_t sfi)
 
 ElementaryFile (const ElementaryFile &o)
 
uint8_t getSfi () const
 
const std::shared_ptr< FileHeadergetHeader () const
 
ElementaryFilesetHeader (const std::shared_ptr< FileHeader > header)
 
std::shared_ptr< FileDatagetData () const
 
bool operator== (const ElementaryFile &o) const
 

Friends

KEYPLECALYPSO_API std::ostream & operator<< (std::ostream &os, const ElementaryFile &ef)
 

Detailed Description

The class

contains the description of a Calypso EF.

Since
0.9

Constructor & Destructor Documentation

◆ ElementaryFile() [1/2]

keyple::calypso::transaction::ElementaryFile::ElementaryFile ( const uint8_t  sfi)

(package-private)
Constructor

Parameters
sfithe associated SFI
Since
0.9

◆ ElementaryFile() [2/2]

keyple::calypso::transaction::ElementaryFile::ElementaryFile ( const ElementaryFile o)

Copy constructor

C++ vs. Java: Copy constructor is prefereable to .clone() method

Member Function Documentation

◆ getData()

std::shared_ptr< FileData > keyple::calypso::transaction::ElementaryFile::getData ( ) const

Gets the file data.

Returns
a not null data reference.
Since
0.9

◆ getHeader()

const std::shared_ptr< FileHeader > keyple::calypso::transaction::ElementaryFile::getHeader ( ) const

Gets the file header.

Returns
a header reference or null if header is not yet set.
Since
0.9

◆ getSfi()

uint8_t keyple::calypso::transaction::ElementaryFile::getSfi ( ) const

Gets the associated SFI.

Returns
the SFI
Since
0.9

◆ operator==()

bool keyple::calypso::transaction::ElementaryFile::operator== ( const ElementaryFile o) const

Comparison is based on field "sfi".

Parameters
othe object to compare
Returns
the comparison evaluation
Since
0.9

◆ setHeader()

ElementaryFile & keyple::calypso::transaction::ElementaryFile::setHeader ( const std::shared_ptr< FileHeader header)

(package-private)
Sets the file header.

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

Friends And Related Function Documentation

◆ operator<<

KEYPLECALYPSO_API std::ostream& operator<< ( std::ostream &  os,
const ElementaryFile ef 
)
friend

The documentation for this class was generated from the following files:
keyple::calypso::transaction::ElementaryFile::ElementaryFile
ElementaryFile(const uint8_t sfi)
Definition: ElementaryFile.cpp:26