AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
9 class CardEvent;
10 
11 namespace 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 
88  void EnableWriting();
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 
120  CardEvent *GetLastProcessedEvent();
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
std::list< EM::Strojcek::StatistikaStrojcek::VystupneData * > EStatisticsCollection
Definition: ECardEventFileProcessor.h:35
#define LIBEVFILEPROCESSOR_API
Definition: libevfileprocessor.h:12
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
Storage class containing parameters for processing events.
Definition: EEventFillerAttribute.h:19
char Correction
Definition: cardevent.cpp:63
ProcessEventResult
ProcessEventResult enumerator.
Definition: ECardEventFileProcessor.h:45
__EPUBLIC __ECLASS LIBCARDEVENT_API CardEvent
The ancestor of all events. Contains common information for all events.
Definition: cardevent.h:17
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
The main class of evfileprocessor library - provides functionality for application's extraOperation (...
Definition: ECardEventFileProcessor.h:41