AppCore
Loading...
Searching...
No Matches
EPrepaidTicketProcessor.h
Go to the documentation of this file.
1#ifndef E_PREPAID_TICKET_PROCESSOR_H
2#define E_PREPAID_TICKET_PROCESSOR_H
3
5#include "cardevent/EventPrepaidTicket.h"
6#include "dataio/datainput/ETarifa.h"
7#include "dataio/datainput/ECennik.h"
8
9namespace EM
10{
11 namespace EventFileProcessor
12 {
16 {
17 public:
21
22 virtual ECardEventProcessor *Clone();
23
24 virtual bool WriteStatistics( EM::PT::EPTAnswer *answer, unsigned long readerNumber, bool unfinishedOperation, EStatisticsCollection &statistics );
25
26 protected:
27 unsigned short GetPrepaidCouponNumber();
28 void SetPrepaidCouponNumber( unsigned short prepaidCouponNumber );
29 EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *FindTariff( unsigned short productID );
30 bool CheckTimeTicketEventValidity( EventPrepaidTicket *prepaidTicketEvent, EStatisticsCollection &statistics );
31 bool CheckFirstTimeUseTimeTicket( EventPrepaidTicket *prepaidTicketEvent );
32 bool ShouldProlongCardValidity( EventPrepaidTicket *prepaidTicketEvent );
33 void SetProlongingCardValidity( bool prolongingCardValidity );
34
35 static EM::Strojcek::VstupneUdaje::TarifnySystem::ECennik::TypCennikaID GetPricelistType( CardEvent *cardEvent );
36 static unsigned char GetKilometers( EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, unsigned char tariffZoneID );
37
38 private:
39 class DataClass;
40 DataClass *d;
41 };
42 }
43}
44
45#endif //E_PREPAID_TICKET_PROCESSOR_H
__EPUBLIC __ECLASS LIBCARDEVENT_API EventPrepaidTicket
Ancestor of all prepaid ticket events - contains information common for prepaid tickets.
Definition EventPrepaidTicket.h:14
__EPUBLIC __ECLASS LIBCARDEVENT_API CardEvent
The ancestor of all events. Contains common information for all events.
Definition cardevent.h:17
virtual CardEvent __EDATAPTR Clone()
#define LIBEVFILEPROCESSOR_API
Definition libevfileprocessor.h:12
Ancestor of all card event processors.
Definition ECardEventProcessor.h:24
Common ancestor for prepaid coupon processors.
Definition EPrepaidTicketProcessor.h:16
Definition EPrepaidTicketProcessor.cpp:45
std::list< EM::Strojcek::StatistikaStrojcek::VystupneData * > EStatisticsCollection
Definition ECardEventFileProcessor.h:35
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7