AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
EM::CardFacade::ECardDataFacadeLog Class Reference

#include <ECardDataFacadeLog.h>

Public Member Functions

 ECardDataFacadeLog (ECardDataStorage *cardDataStorage)
 
virtual ~ECardDataFacadeLog ()
 in destructor destroy data class More...
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], unsigned short dataTypesOperation) const
 
bool GetTimeData (unsigned long &timeDate) const
 get information about time and date More...
 
bool SetTimeData (const unsigned long timeDate) const
 set information about time and date More...
 
bool GetNetworkID (unsigned long &networkID) const
 get information about network ID More...
 
bool SetNetworkID (const unsigned long networkID) const
 set information about network ID More...
 
bool GetServiceProvider (unsigned long &serviceProvider) const
 get/set information about service provider / provider number / company number More...
 
bool SetServiceProvider (const unsigned long serviceProvider) const
 
bool GetDevice (unsigned long &device) const
 get information about device(terminal) More...
 
bool SetDevice (const unsigned long device) const
 set information about device(terminal) More...
 
bool GetDeviceCounter (unsigned long &deviceCounter) const
 get device(terminal) transaction counter More...
 
bool SetDeviceCounter (const unsigned long deviceCounter) const
 set device(terminal) transaction counter More...
 
bool GetPriceAmountUnit (EMoneyData &moneyData) const
 get information about price amount More...
 
bool SetPriceAmountUnit (const EMoneyData &moneyData) const
 set information about price amount More...
 
bool GetVAT (unsigned long &vat) const
 get information about VAT More...
 
bool SetVAT (const unsigned long vat) const
 set information about VAT More...
 
bool GetData (unsigned char &serviceID, unsigned char &serviceAmount, const unsigned char pos) const
 get information about event data on position More...
 
bool SetData (const unsigned char serviceID, const unsigned char serviceAmount, const unsigned char pos) const
 set information about event data on position More...
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::LogCardFeatures feature, bool &enabled) const
 checks validity of selected feature More...
 
bool GetWalletBalanceBefore (long &balanceBefore) const
 Get previous wallet balance. More...
 
bool SetWalletBalanceBefore (const long balanceBefore) const
 Set previous wallet balance. More...
 
bool GetPrice (unsigned long &price) const
 Get previous ticket price. More...
 
bool SetPrice (const unsigned long price) const
 Set previous ticket price. More...
 
bool GetTransactionType (unsigned long &transactionType) const
 Get previous transaction type. More...
 
bool SetTransactionType (const unsigned long transactionType) const
 Set previous transaction type. More...
 
bool GetWalletCounter (unsigned short &walletCounter) const
 Get wallet transaction counter. More...
 
bool SetWalletCounter (const unsigned short walletCounter) const
 Set wallet transaction counter. More...
 
bool GetWalletSamNumber (unsigned long &walletSamNumber) const
 Get wallet sam number. More...
 
bool SetWalletSamNumber (const unsigned long walletSamNumber) const
 Set wallet sam number. More...
 
bool GetWalletSamCounter (unsigned long &walletSamCounter) const
 Get wallet sam transaction counter. More...
 
bool SetWalletSamCounter (const unsigned long walletSamCounter) const
 Set wallet sam transaction counter. More...
 
bool IsDataValid (bool &validData) const
 
bool SetDataValid (const bool validData) const
 Set Data Validity. More...
 
 ECardDataFacadeLog (ECardDataStorage *cardDataStorage)
 
virtual ~ECardDataFacadeLog ()
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], unsigned short dataTypesOperation) const
 
bool GetTimeData (unsigned long &timeDate) const
 get information about time and date More...
 
bool SetTimeData (const unsigned long timeDate) const
 set information about time and date More...
 
bool GetNetworkID (unsigned long &networkID) const
 get information about network ID More...
 
bool SetNetworkID (const unsigned long networkID) const
 set information about network ID More...
 
bool GetServiceProvider (unsigned long &serviceProvider) const
 get/set information about service provider / provider number / company number More...
 
bool SetServiceProvider (const unsigned long serviceProvider) const
 
bool GetDevice (unsigned long &device) const
 get information about device(terminal) More...
 
bool SetDevice (const unsigned long device) const
 set information about device(terminal) More...
 
bool GetDeviceCounter (unsigned long &deviceCounter) const
 get device(terminal) transaction counter More...
 
bool SetDeviceCounter (const unsigned long deviceCounter) const
 set device(terminal) transaction counter More...
 
bool GetPriceAmountUnit (EMoneyData &moneyData) const
 get information about price amount More...
 
bool SetPriceAmountUnit (const EMoneyData &moneyData) const
 set information about price amount More...
 
bool GetVAT (unsigned long &vat) const
 get information about VAT More...
 
bool SetVAT (const unsigned long vat) const
 set information about VAT More...
 
bool GetData (unsigned char &serviceID, unsigned char &serviceAmount, const unsigned char pos) const
 get information about event data on position More...
 
bool SetData (const unsigned char serviceID, const unsigned char serviceAmount, const unsigned char pos) const
 set information about event data on position More...
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::LogCardFeatures feature, bool &enabled) const
 checks validity of selected feature More...
 
bool GetWalletBalanceBefore (long &balanceBefore) const
 Get previous wallet balance. More...
 
bool SetWalletBalanceBefore (const long balanceBefore) const
 Set previous wallet balance. More...
 
bool GetPrice (unsigned long &price) const
 Get previous ticket price. More...
 
bool SetPrice (const unsigned long price) const
 Set previous ticket price. More...
 
bool GetTransactionType (unsigned long &transactionType) const
 Get previous transaction type. More...
 
bool SetTransactionType (const unsigned long transactionType) const
 Set previous transaction type. More...
 
bool GetWalletCounter (unsigned short &walletCounter) const
 Get wallet transaction counter. More...
 
bool SetWalletCounter (const unsigned short walletCounter) const
 Set wallet transaction counter. More...
 
bool GetWalletSamNumber (unsigned long &walletSamNumber) const
 Get wallet sam number. More...
 
bool SetWalletSamNumber (const unsigned long walletSamNumber) const
 Set wallet sam number. More...
 
bool GetWalletSamCounter (unsigned long &walletSamCounter) const
 Get wallet sam transaction counter. More...
 
bool SetWalletSamCounter (const unsigned long walletSamCounter) const
 Set wallet sam transaction counter. More...
 
bool IsDataValid (bool &validData) const
 
bool SetDataValid (const bool validData) const
 Set Data Validity. More...
 

Constructor & Destructor Documentation

INTERNAL ECardDataFacadeLog::ECardDataFacadeLog ( ECardDataStorage cardDataStorage)

CONSTRUCTOR

Destructor EM::CardFacade::ECardDataFacadeLog::~ECardDataFacadeLog ( )
virtual

in destructor destroy data class

DESTRUCTOR

EM::CardFacade::ECardDataFacadeLog::ECardDataFacadeLog ( ECardDataStorage cardDataStorage)
virtual EM::CardFacade::ECardDataFacadeLog::~ECardDataFacadeLog ( )
virtual

Member Function Documentation

bool EM::CardFacade::ECardDataFacadeLog::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeLog::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeLog::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeLog::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
void EM::CardFacade::ECardDataFacadeLog::Clear ( )

clear all data

void ECardDataFacadeLog::Clear ( )

clear all data

bool ECardDataFacadeLog::GetData ( unsigned char &  serviceID,
unsigned char &  serviceAmount,
const unsigned char  pos 
) const

get information about event data on position

Parameters
pos- position of data 0..7 Not supported in card implementations:
  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::GetData ( unsigned char &  serviceID,
unsigned char &  serviceAmount,
const unsigned char  pos 
) const

get information about event data on position

Parameters
pos- position of data 0..7 Not supported in card implementations:
  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::GetDevice ( unsigned long &  device) const

get information about device(terminal)

bool ECardDataFacadeLog::GetDevice ( unsigned long &  device) const

get information about device(terminal)

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetDeviceCounter ( unsigned long &  deviceCounter) const

get device(terminal) transaction counter

bool ECardDataFacadeLog::GetDeviceCounter ( unsigned long &  deviceCounter) const

get device(terminal) transaction counter

Here is the caller graph for this function:

bool ECardDataFacadeLog::GetNetworkID ( unsigned long &  networkID) const

get information about network ID

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::GetNetworkID ( unsigned long &  networkID) const

get information about network ID

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::GetPrice ( unsigned long &  price) const

Get previous ticket price.

Parameters
price- Previous transaction ticket price

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetPrice ( unsigned long &  price) const

Get previous ticket price.

Parameters
price- Previous transaction ticket price
bool ECardDataFacadeLog::GetPriceAmountUnit ( EMoneyData &  moneyData) const

get information about price amount

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::GetPriceAmountUnit ( EMoneyData &  moneyData) const

get information about price amount

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::GetServiceProvider ( unsigned long &  serviceProvider) const

get/set information about service provider / provider number / company number

See also
documentation: Documentation: Dokumentacia/uml/Intel/Documents/DESFireEMCard/DESFire_DataFormat_*.pdf

Not supported in card implementations:

  • EMTEST Mifare

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetServiceProvider ( unsigned long &  serviceProvider) const

get/set information about service provider / provider number / company number

See also
documentation: Documentation: Dokumentacia/uml/Intel/Documents/DESFireEMCard/DESFire_DataFormat_*.pdf

Not supported in card implementations:

  • EMTEST Mifare
bool EM::CardFacade::ECardDataFacadeLog::GetTimeData ( unsigned long &  timeDate) const

get information about time and date

Parameters
timeDate- time stamp [s]
bool ECardDataFacadeLog::GetTimeData ( unsigned long &  timeDate) const

get information about time and date

Parameters
timeDate- time stamp [s]

Here is the caller graph for this function:

bool ECardDataFacadeLog::GetTransactionType ( unsigned long &  transactionType) const

Get previous transaction type.

Parameters
transactionType- Previous transaction transaction type

transaction type

  • 0 - inicialization
  • 1 - decrement
  • 2 - increment
  • 3 - limited increment - only DESFIRE MEDIUM

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetTransactionType ( unsigned long &  transactionType) const

Get previous transaction type.

Parameters
transactionType- Previous transaction transaction type

transaction type

  • 0 - inicialization
  • 1 - decrement
  • 2 - increment
  • 3 - limited increment - only DESFIRE MEDIUM
bool ECardDataFacadeLog::GetVAT ( unsigned long &  vat) const

get information about VAT

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::GetVAT ( unsigned long &  vat) const

get information about VAT

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::GetWalletBalanceBefore ( long &  balanceBefore) const

Get previous wallet balance.

Parameters
balanceBefore- Previous transaction wallet balance

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetWalletBalanceBefore ( long &  balanceBefore) const

Get previous wallet balance.

Parameters
balanceBefore- Previous transaction wallet balance
bool EM::CardFacade::ECardDataFacadeLog::GetWalletCounter ( unsigned short &  walletCounter) const

Get wallet transaction counter.

bool ECardDataFacadeLog::GetWalletCounter ( unsigned short &  walletCounter) const

Get wallet transaction counter.

Here is the caller graph for this function:

bool ECardDataFacadeLog::GetWalletSamCounter ( unsigned long &  walletSamCounter) const

Get wallet sam transaction counter.

Not supported in card implementations:

  • EMTEST Mifare

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::GetWalletSamCounter ( unsigned long &  walletSamCounter) const

Get wallet sam transaction counter.

Not supported in card implementations:

  • EMTEST Mifare
bool EM::CardFacade::ECardDataFacadeLog::GetWalletSamNumber ( unsigned long &  walletSamNumber) const

Get wallet sam number.

Not supported in card implementations:

  • EMTEST Mifare
bool ECardDataFacadeLog::GetWalletSamNumber ( unsigned long &  walletSamNumber) const

Get wallet sam number.

Not supported in card implementations:

  • EMTEST Mifare

Here is the caller graph for this function:

ECardFacadeDefines::ReturnValues ECardDataFacadeLog::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
ECardFacadeDefines::ReturnValues EM::CardFacade::ECardDataFacadeLog::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
bool ECardDataFacadeLog::IsCardFeatureEnabled ( const ECardFacadeDefines::LogCardFeatures  feature,
bool &  enabled 
) const

checks validity of selected feature

Parameters
featurefrom ECardFacadeDefines enum features
outputparam indicates feature validity
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::IsCardFeatureEnabled ( const ECardFacadeDefines::LogCardFeatures  feature,
bool &  enabled 
) const

checks validity of selected feature

Parameters
featurefrom ECardFacadeDefines enum features
outputparam indicates feature validity
Returns
true - successfully ended otherwise false
bool ECardDataFacadeLog::IsDataValid ( bool &  validData) const

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeLog::IsDataValid ( bool &  validData) const
bool EM::CardFacade::ECardDataFacadeLog::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool ECardDataFacadeLog::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool ECardDataFacadeLog::SetData ( const unsigned char  serviceID,
const unsigned char  serviceAmount,
const unsigned char  pos 
) const

set information about event data on position

Parameters
pos- position of data 0..7 Not supported in card implementations:
  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::SetData ( const unsigned char  serviceID,
const unsigned char  serviceAmount,
const unsigned char  pos 
) const

set information about event data on position

Parameters
pos- position of data 0..7 Not supported in card implementations:
  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::SetDataValid ( const bool  validData) const

Set Data Validity.

Parameters
validDatadata validity Not supported in card implementations:
  • DesfireXT MifareIDOL Mikroelektronika1-2
bool EM::CardFacade::ECardDataFacadeLog::SetDataValid ( const bool  validData) const

Set Data Validity.

Parameters
validDatadata validity Not supported in card implementations:
  • DesfireXT MifareIDOL Mikroelektronika1-2
bool EM::CardFacade::ECardDataFacadeLog::SetDevice ( const unsigned long  device) const

set information about device(terminal)

bool ECardDataFacadeLog::SetDevice ( const unsigned long  device) const

set information about device(terminal)

bool EM::CardFacade::ECardDataFacadeLog::SetDeviceCounter ( const unsigned long  deviceCounter) const

set device(terminal) transaction counter

bool ECardDataFacadeLog::SetDeviceCounter ( const unsigned long  deviceCounter) const

set device(terminal) transaction counter

bool ECardDataFacadeLog::SetNetworkID ( const unsigned long  networkID) const

set information about network ID

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::SetNetworkID ( const unsigned long  networkID) const

set information about network ID

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::SetPrice ( const unsigned long  price) const

Set previous ticket price.

Parameters
price- Previous transaction ticket price
bool EM::CardFacade::ECardDataFacadeLog::SetPrice ( const unsigned long  price) const

Set previous ticket price.

Parameters
price- Previous transaction ticket price
bool EM::CardFacade::ECardDataFacadeLog::SetPriceAmountUnit ( const EMoneyData &  moneyData) const

set information about price amount

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::SetPriceAmountUnit ( const EMoneyData &  moneyData) const

set information about price amount

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool EM::CardFacade::ECardDataFacadeLog::SetServiceProvider ( const unsigned long  serviceProvider) const
bool ECardDataFacadeLog::SetServiceProvider ( const unsigned long  serviceProvider) const
bool EM::CardFacade::ECardDataFacadeLog::SetTimeData ( const unsigned long  timeDate) const

set information about time and date

Parameters
timeDate- timestamp [s]
bool ECardDataFacadeLog::SetTimeData ( const unsigned long  timeDate) const

set information about time and date

Parameters
timeDate- timestamp [s]
bool ECardDataFacadeLog::SetTransactionType ( const unsigned long  transactionType) const

Set previous transaction type.

Parameters
transactionType- Previous transaction transaction type

transaction type

  • 0 - inicialization
  • 1 - decrement
  • 2 - increment
  • 3 - limited increment - only DESFIRE MEDIUM
bool EM::CardFacade::ECardDataFacadeLog::SetTransactionType ( const unsigned long  transactionType) const

Set previous transaction type.

Parameters
transactionType- Previous transaction transaction type

transaction type

  • 0 - inicialization
  • 1 - decrement
  • 2 - increment
  • 3 - limited increment - only DESFIRE MEDIUM
bool EM::CardFacade::ECardDataFacadeLog::SetVAT ( const unsigned long  vat) const

set information about VAT

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::SetVAT ( const unsigned long  vat) const

set information about VAT

Not supported in card implementations:

  • EMTEST Mifare
  • EMTEST Desfire
bool ECardDataFacadeLog::SetWalletBalanceBefore ( const long  balanceBefore) const

Set previous wallet balance.

Parameters
balanceBefore- Previous transaction wallet balance
bool EM::CardFacade::ECardDataFacadeLog::SetWalletBalanceBefore ( const long  balanceBefore) const

Set previous wallet balance.

Parameters
balanceBefore- Previous transaction wallet balance
bool ECardDataFacadeLog::SetWalletCounter ( const unsigned short  walletCounter) const

Set wallet transaction counter.

bool EM::CardFacade::ECardDataFacadeLog::SetWalletCounter ( const unsigned short  walletCounter) const

Set wallet transaction counter.

bool ECardDataFacadeLog::SetWalletSamCounter ( const unsigned long  walletSamCounter) const

Set wallet sam transaction counter.

Not supported in card implementations:

  • EMTEST Mifare
bool EM::CardFacade::ECardDataFacadeLog::SetWalletSamCounter ( const unsigned long  walletSamCounter) const

Set wallet sam transaction counter.

Not supported in card implementations:

  • EMTEST Mifare
bool ECardDataFacadeLog::SetWalletSamNumber ( const unsigned long  walletSamNumber) const

Set wallet sam number.

Not supported in card implementations:

  • EMTEST Mifare
bool EM::CardFacade::ECardDataFacadeLog::SetWalletSamNumber ( const unsigned long  walletSamNumber) const

Set wallet sam number.

Not supported in card implementations:

  • EMTEST Mifare

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