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

#include <CashPriceRoundingModule.h>

Inheritance diagram for EM::TicketIssueLogic::CashPriceRoundingModule:
Inheritance graph
[legend]
Collaboration diagram for EM::TicketIssueLogic::CashPriceRoundingModule:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Types

enum  PrintedTicketSection { OwnerSection, SingleFellowTravellerSection, RegionalDiscountSection, SummarySection }
 

Public Member Functions

 CashPriceRoundingModule (ETicketIssueLogicDataStorage *dataStorage, std::string moduleName=CASH_PRICE_ROUNDING_MODULE_NAME)
 
virtual ~CashPriceRoundingModule ()
 
virtual
EIssueLogicDefines::ReturnValues 
Init ()
 init module input data ( for example other module ) More...
 
void Clear ()
 
bool IsCashPriceRoundingPossible () const
 
bool TryToRoundCashPrice (long &price) const
 
bool SetPrintedTicketSection (const PrintedTicketSection ticketSection, EM::Common::EDataCol *dataCollection, const long summaryPrice, const unsigned char currencyID)
 SetPrintedTicketSection - method sets individual printed ticket sections, which are filled when we are preparing printed ticket data. More...
 
bool ProcessAndFillPrintedTicketTemplate ()
 ProcessAndFillPrintedTicketTemplate - after printed ticked has filled all sections, we need to process previously prepared sections data. More...
 
bool CreateStatisticalTicket (EM::Strojcek::StatistikaStrojcek::ECestovnyListok *&statisticTicket)
 CreateStatisticalTicket - after printing, we need to create statistical ticket from previously processed printed ticket data. More...
 
- Public Member Functions inherited from EM::TicketIssueLogic::ETicketIssueModule
 ETicketIssueModule (const std::string &name, EIssueLogicDefines::ModuleFamily moduleFamily)
 
virtual ~ETicketIssueModule ()
 
bool GetName (std::string &moduleName)
 unique module identificator More...
 
bool GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily)
 return by reference module family More...
 

Member Enumeration Documentation

Enumerator
OwnerSection 
SingleFellowTravellerSection 
RegionalDiscountSection 
SummarySection 

Constructor & Destructor Documentation

CashPriceRoundingModule::CashPriceRoundingModule ( ETicketIssueLogicDataStorage dataStorage,
std::string  moduleName = CASH_PRICE_ROUNDING_MODULE_NAME 
)
CashPriceRoundingModule::~CashPriceRoundingModule ( )
virtual

Member Function Documentation

void CashPriceRoundingModule::Clear ( )
bool CashPriceRoundingModule::CreateStatisticalTicket ( EM::Strojcek::StatistikaStrojcek::ECestovnyListok *&  statisticTicket)

CreateStatisticalTicket - after printing, we need to create statistical ticket from previously processed printed ticket data.

Parameters
statisticTicket- statistical ticket which will be created
Returns
true on success, false otherwise

Here is the call graph for this function:

EIssueLogicDefines::ReturnValues CashPriceRoundingModule::Init ( void  )
virtual

init module input data ( for example other module )

Init

Returns
enum result value

Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.

bool CashPriceRoundingModule::IsCashPriceRoundingPossible ( ) const

Here is the caller graph for this function:

bool CashPriceRoundingModule::ProcessAndFillPrintedTicketTemplate ( )

ProcessAndFillPrintedTicketTemplate - after printed ticked has filled all sections, we need to process previously prepared sections data.

Returns
true on success, false otherwise

Here is the call graph for this function:

bool CashPriceRoundingModule::SetPrintedTicketSection ( const PrintedTicketSection  ticketSection,
EM::Common::EDataCol *  dataCollection,
const long  summaryPrice,
const unsigned char  currencyID 
)

SetPrintedTicketSection - method sets individual printed ticket sections, which are filled when we are preparing printed ticket data.

Parameters
ticketSection- processed ticket section
dataCollection- data collection which belongs to ticket section
summaryPrice- printed ticket section summary price
currencyID- printed ticket section currency ID
Returns
true on success, false otherwise

Here is the call graph for this function:

bool CashPriceRoundingModule::TryToRoundCashPrice ( long &  price) const

Here is the call graph for this function:

Here is the caller graph for this function:


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