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

#include <FileHeader.h>

Public Member Functions

FileHeaderBuilderlid (const uint16_t lid)
 
FileHeaderBuilderrecordsNumber (const int recordsNumber)
 
FileHeaderBuilderrecordSize (const int recordSize)
 
FileHeaderBuildertype (const FileType type)
 
FileHeaderBuilderaccessConditions (const std::vector< uint8_t > &accessConditions)
 
FileHeaderBuilderkeyIndexes (const std::vector< uint8_t > &keyIndexes)
 
FileHeaderBuilderdfStatus (const uint8_t dfStatus)
 
FileHeaderBuildersharedReference (const uint16_t sharedReference)
 
std::unique_ptr< FileHeaderbuild ()
 

Public Attributes

friend FileHeader
 

Detailed Description

(package-private)
Builder pattern

Member Function Documentation

◆ accessConditions()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::accessConditions ( const std::vector< uint8_t > &  accessConditions)

(package-private)
Sets a reference to the provided access conditions byte array.

Parameters
accessConditionsthe access conditions (should be not null and 4 bytes length)
Returns
the builder instance

◆ build()

std::unique_ptr< FileHeader > keyple::calypso::transaction::FileHeaderBuilder::build ( )

(package-private)
Build a new

.

Returns
a new instance

◆ dfStatus()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::dfStatus ( const uint8_t  dfStatus)

(package-private)
Sets the DF status.

Parameters
dfStatusthe DF status (byte)
Returns
the builder instance

◆ keyIndexes()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::keyIndexes ( const std::vector< uint8_t > &  keyIndexes)

(package-private)
Sets a reference to the provided key indexes byte array.

Parameters
keyIndexesthe key indexes (should be not null and 4 bytes length)
Returns
the builder instance

◆ lid()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::lid ( const uint16_t  lid)

(package-private)
Sets the LID.

Parameters
lidthe LID
Returns
the builder instance

◆ recordSize()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::recordSize ( const int  recordSize)

(package-private)
Sets the size of a record.

Parameters
recordSizethe size of a record (should be
>=
1)
Returns
the builder instance

◆ recordsNumber()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::recordsNumber ( const int  recordsNumber)

(package-private)
Sets the number of records.

Parameters
recordsNumberthe number of records (should be
>=
1)
Returns
the builder instance

◆ sharedReference()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::sharedReference ( const uint16_t  sharedReference)

(package-private)
Sets the shared reference.

Parameters
sharedReferencethe shared reference
Returns
the builder instance

◆ type()

FileHeaderBuilder & keyple::calypso::transaction::FileHeaderBuilder::type ( const FileType  type)

(package-private)
Sets the file type.

Parameters
typethe file type (should be not null)
Returns
the builder instance

Member Data Documentation

◆ FileHeader

friend keyple::calypso::transaction::FileHeader::FileHeaderBuilder::FileHeader

Authorize access to private members


The documentation for this class was generated from the following files:
keyple::calypso::transaction::FileHeader::FileHeaderBuilder::FileHeader
friend FileHeader
Definition: FileHeader.h:57