|
AppCore
|
The main class of evfileprocessor library - provides functionality for application's extraOperation (EEventFiller usually) More...
#include <ECardEventFileProcessor.h>
Classes | |
| class | DataClass |
Public Member Functions | |
| ECardEventFileProcessor () | |
| ECardEventFileProcessor (std::string path) | |
| ~ECardEventFileProcessor () | |
| void | SetPath (std::string path) |
| void | EnableWriting () |
| EM::PT::EDataCollection * | ProcessEvent (EEventFillerAttribute *eventFillerAttribute, ProcessEventResult &processEventResult, EStatisticsCollection &statistics) |
| bool | WriteStatistics (EM::PT::EPTAnswer *answer, bool confirmingEvent, unsigned long readerNumber, bool unfinishedOperation, EStatisticsCollection &statistics) |
| CardEvent * | GetLastProcessedEvent () |
| void | SetWritePhysicallyStatistics (bool writePhysically) |
| bool | FillPrintData (EM::Common::EDataCol *dataCol) |
| void | RegisterProcessedEvent (unsigned long processedEventID) |
| ECardEventFileProcessor () | |
| ECardEventFileProcessor (std::string path) | |
| ~ECardEventFileProcessor () | |
| void | SetPath (std::string path) |
| void | EnableWriting () |
| EM::PT::EDataCollection * | ProcessEvent (EEventFillerAttribute *eventFillerAttribute, ProcessEventResult &processEventResult, EStatisticsCollection &statistics) |
| bool | WriteStatistics (EM::PT::EPTAnswer *answer, bool confirmingEvent, unsigned long readerNumber, bool unfinishedOperation, EStatisticsCollection &statistics) |
| CardEvent * | GetLastProcessedEvent () |
| void | SetWritePhysicallyStatistics (bool writePhysically) |
| bool | FillPrintData (EM::Common::EDataCol *dataCol) |
| void | RegisterProcessedEvent (unsigned long processedEventID) |
Static Public Member Functions | |
| static long | GetVersion () |
| static long | GetVersion () |
The main class of evfileprocessor library - provides functionality for application's extraOperation (EEventFiller usually)
It looks for events for a card identified by SNR (UID), prepares data for writing if there is something to write and writes statistics
ProcessEventResult enumerator.
ProcessEventResult enumerator.
| ECardEventFileProcessor::ECardEventFileProcessor | ( | ) |
CONSTRUCTOR
| EM::EventFileProcessor::ECardEventFileProcessor::ECardEventFileProcessor | ( | std::string | path | ) |
| ECardEventFileProcessor::~ECardEventFileProcessor | ( | ) |
DESTRUCTOR
| EM::EventFileProcessor::ECardEventFileProcessor::ECardEventFileProcessor | ( | ) |
| EM::EventFileProcessor::ECardEventFileProcessor::ECardEventFileProcessor | ( | std::string | path | ) |
| EM::EventFileProcessor::ECardEventFileProcessor::~ECardEventFileProcessor | ( | ) |
| void ECardEventFileProcessor::EnableWriting | ( | ) |
This function is supposed to be called after manipulating with event files It closes filestreams in order to allow performing merging operations on event files if neccessarry
EnableWriting
| void EM::EventFileProcessor::ECardEventFileProcessor::EnableWriting | ( | ) |
This function is supposed to be called after manipulating with event files It closes filestreams in order to allow performing merging operations on event files if neccessarry
| bool EM::EventFileProcessor::ECardEventFileProcessor::FillPrintData | ( | EM::Common::EDataCol * | dataCol | ) |
Fills data for printing tickets
| dataCol | : EDataCol* - ticket's dataCol |
| codePage | : codepage - code page of input data |
| bool EM::EventFileProcessor::ECardEventFileProcessor::FillPrintData | ( | EM::Common::EDataCol * | dataCol | ) |
Fills data for printing tickets
| dataCol | : EDataCol* - ticket's dataCol |
| codePage | : codepage - code page of input data |
| CardEvent * ECardEventFileProcessor::GetLastProcessedEvent | ( | ) |
Returns last processed event
GetLastProcessedEvent
| CardEvent* EM::EventFileProcessor::ECardEventFileProcessor::GetLastProcessedEvent | ( | ) |
Returns last processed event
|
static |
Returns version of library It's used by monitoring system
|
static |
Returns version of library It's used by monitoring system
GetVersion

| EM::PT::EDataCollection* EM::EventFileProcessor::ECardEventFileProcessor::ProcessEvent | ( | EEventFillerAttribute * | eventFillerAttribute, |
| ProcessEventResult & | processEventResult, | ||
| EStatisticsCollection & | statistics | ||
| ) |
It looks for events for card identified by SNR/UID, evaluates events if there are some and eventually creates EDataCollection for writing
| eventFillerAttribute | : EEventFillerAttribute* = class encapsulating some neccessarry additional information |
| processEventResult | : ProcessEventResult - OUTPUT parameter - return value of this method (No events, writing purse, writing time ticket etc..) |
| statistics | : EStatisticsCollection - OUTPUT parameter - collection of statistics records (which have to be deleted by client) |
| EDataCollection * ECardEventFileProcessor::ProcessEvent | ( | EEventFillerAttribute * | eventFillerAttribute, |
| ProcessEventResult & | processEventResult, | ||
| EStatisticsCollection & | statistics | ||
| ) |
It looks for events for card identified by SNR/UID, evaluates events if there are some and eventually creates EDataCollection for writing
| eventFillerAttribute | : EEventFillerAttribute* = class encapsulating some neccessarry additional information |
| processEventResult | : ProcessEventResult - OUTPUT parameter - return value of this method (No events, writing purse, writing time ticket etc..) |
| statistics | : EStatisticsCollection - OUTPUT parameter - collection of statistics records (which have to be deleted by client) |
ProcessEvent

| void EM::EventFileProcessor::ECardEventFileProcessor::RegisterProcessedEvent | ( | unsigned long | processedEventID | ) |
Adds processed event ID to recently processed events in order not to process it repeatedly (it's usually event from master/slave)
| processedEventID | - card event ID |
| void ECardEventFileProcessor::RegisterProcessedEvent | ( | unsigned long | processedEventID | ) |
Adds processed event ID to recently processed events in order not to process it repeatedly (it's usually event from master/slave)
| processedEventID | - card event ID |
RegisterProcessedEvent
| void EM::EventFileProcessor::ECardEventFileProcessor::SetPath | ( | std::string | path | ) |
Sets path to event files on local fileSystem
| path | : string - path to event files including filename without extension (e.g. /opt/emtest/var/events) it will append extensions .idx and .dat fot itself |
| void EM::EventFileProcessor::ECardEventFileProcessor::SetPath | ( | std::string | path | ) |
Sets path to event files on local fileSystem
| path | : string - path to event files including filename without extension (e.g. /opt/emtest/var/events) it will append extensions .idx and .dat fot itself |
| void ECardEventFileProcessor::SetWritePhysicallyStatistics | ( | bool | writePhysically | ) |
Enables to turn off physical write of statistics. It can be used on slaves which are only sending statistics to master and there is no need to write it locally. Think twice before using this method True by default
SetWritePhysicallyStatistics
| void EM::EventFileProcessor::ECardEventFileProcessor::SetWritePhysicallyStatistics | ( | bool | writePhysically | ) |
Enables to turn off physical write of statistics. It can be used on slaves which are only sending statistics to master and there is no need to write it locally. Think twice before using this method True by default
| bool EM::EventFileProcessor::ECardEventFileProcessor::WriteStatistics | ( | EM::PT::EPTAnswer * | answer, |
| bool | confirmingEvent, | ||
| unsigned long | readerNumber, | ||
| bool | unfinishedOperation, | ||
| EStatisticsCollection & | statistics | ||
| ) |
WriteStatistics Returns statistic records related to last processed event
| answer | : EPTAnswer* - answer from PT |
| confirmingEvent | : bool - if confirming file for webservice should be written (true in most cases) |
| readerNumber | : unsigned long - reader SNR on Slave, otherwise 0 |
| unfinishedOperation | : bool - if unfinished operation was detected |
| statistics | : EStatisticsCollection - OUTPUT parameter - collection of statistics records (which have to be deleted by client) |
| bool EM::EventFileProcessor::ECardEventFileProcessor::WriteStatistics | ( | EM::PT::EPTAnswer * | answer, |
| bool | confirmingEvent, | ||
| unsigned long | readerNumber, | ||
| bool | unfinishedOperation, | ||
| EStatisticsCollection & | statistics | ||
| ) |
WriteStatistics Returns statistic records related to last processed event
| answer | : EPTAnswer* - answer from PT |
| confirmingEvent | : bool - if confirming file for webservice should be written (true in most cases) |
| readerNumber | : unsigned long - reader SNR on Slave, otherwise 0 |
| unfinishedOperation | : bool - if unfinished operation was detected |
| statistics | : EStatisticsCollection - OUTPUT parameter - collection of statistics records (which have to be deleted by client) |
1.8.8