AppCore
Loading...
Searching...
No Matches
ECardEventFileProcessor.h
Go to the documentation of this file.
1#ifndef E_CARD_EVENT_FILE_PROCESSOR_H
2#define E_CARD_EVENT_FILE_PROCESSOR_H
3
4#include <list>
5#include <string>
6#include "appcore/eventsfileprocessor/libevfileprocessor.h"
7#include "appcore/eventsfileprocessor/EEventFillerAttribute.h"
8
9class CardEvent;
10
11namespace EM
12{
13 namespace PT
14 {
15 class EPTAnswer;
16 class EDataCollection;
17 }
18
19 namespace Common
20 {
21 class EDataCol;
22 }
23
24 namespace Strojcek
25 {
26 namespace StatistikaStrojcek
27 {
28 struct VystupneData;
29 }
30 }
31
32 namespace EventFileProcessor
33 {
34
35 typedef std::list<EM::Strojcek::StatistikaStrojcek::VystupneData*> EStatisticsCollection;
36
41 class LIBEVFILEPROCESSOR_API ECardEventFileProcessor
42 {
43 public:
46 {
47 Undefined = 999,
48 PurseToWrite = 0,
49 TimeTicketToWrite = 1,
50 BlockingToWrite = 2,
51 NoEvents = 4,
52 NoSpaceOnCard = 5,
53 CardNotSold = 6,
54 EvaluatingError = 7,
55 KuwaitBlocking = 10,
56 CardProviderMismatch = 11,
57 ProlongToWrite = 12,
58 NothingToProlong = 13,
59 InsertedToDataCollection = 14,
60 Correction = 15,
61 UnknownCardEvent = 16,
62 FictiveBlocking = 17,
63 PersonalDataSaved = 18,
64 ErrorCardData = 19,
65 MaxPurseBalanceExceeded = 20,
66 NothingToCorrect = 21,
67 CustomerDataUpdateToWrite = 22,
68 MinPurseBalanceExceeded = 23
69 };
70
71
73 ECardEventFileProcessor( std::string path );
75
82 void SetPath( std::string path );
83
89
101 EM::PT::EDataCollection* ProcessEvent( EEventFillerAttribute *eventFillerAttribute, ProcessEventResult &processEventResult, EStatisticsCollection &statistics );
102
114 bool WriteStatistics( EM::PT::EPTAnswer *answer, bool confirmingEvent, unsigned long readerNumber, bool unfinishedOperation, EStatisticsCollection &statistics );
115
121
126 static long GetVersion();
127
133 void SetWritePhysicallyStatistics( bool writePhysically );
134
140 bool FillPrintData( EM::Common::EDataCol *dataCol );
141
146 void RegisterProcessedEvent( unsigned long processedEventID );
147
148 private:
149 class DataClass;
150 DataClass *d;
151 };
152 }
153}
154
155#endif //E_CARD_EVENT_FILE_PROCESSOR_H
__EPUBLIC __ECLASS LIBCARDEVENT_API CardEvent
The ancestor of all events. Contains common information for all events.
Definition cardevent.h:17
#define LIBEVFILEPROCESSOR_API
Definition libevfileprocessor.h:12
char Correction
Definition cardevent.cpp:9
Definition ECardEventFileProcessor.cpp:52
void RegisterProcessedEvent(unsigned long processedEventID)
ProcessEventResult
ProcessEventResult enumerator.
Definition ECardEventFileProcessor.h:46
bool WriteStatistics(EM::PT::EPTAnswer *answer, bool confirmingEvent, unsigned long readerNumber, bool unfinishedOperation, EStatisticsCollection &statistics)
void SetWritePhysicallyStatistics(bool writePhysically)
bool FillPrintData(EM::Common::EDataCol *dataCol)
EM::PT::EDataCollection * ProcessEvent(EEventFillerAttribute *eventFillerAttribute, ProcessEventResult &processEventResult, EStatisticsCollection &statistics)
Storage class containing parameters for processing events.
Definition EEventFillerAttribute.h:20
std::list< EM::Strojcek::StatistikaStrojcek::VystupneData * > EStatisticsCollection
Definition ECardEventFileProcessor.h:35
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7