AppCore
Loading...
Searching...
No Matches
EPurchasedTicketsRecord.h
Go to the documentation of this file.
1#ifndef EPURCHASEDTICKETSRECORD_H
2#define EPURCHASEDTICKETSRECORD_H
3
4#include <string>
5
6namespace EM
7{
8 namespace TicketIssueLogic
9 {
11 {
13
14 class DataClass;
15 DataClass *d;
16
18 public:
21 EPurchasedTicketsRecord( const std::string &uid, bool timeTicketJouney, signed char newCount );
23
24 void Clear();
25 void ChangePurchasedTicketCount( signed char delta );
26 void Read( FILE *inputFile );
27 void Write( FILE *outputFile ) const;
28 int GetRecordSize();
29
30 std::string GetUid() const;
31 bool GetTimeTicketJourney() const;
32 signed char GetPurchasedTicketCount() const;
33 bool IsRecordValid() const;
34
36 bool operator==( const std::string &uid ) const;
37 bool operator==( const EPurchasedTicketsRecord &otherRecord ) const;
38 };
39 }
40}
41
42#endif // EPURCHASEDTICKETSRECORD_H
void Write()
Definition EPurchasedTicketsRecord.h:11
EPurchasedTicketsRecord & operator=(const EPurchasedTicketsRecord &otherRecord)
Definition EPurchasedTicketsRecord.cpp:149
signed char GetPurchasedTicketCount() const
Definition EPurchasedTicketsRecord.cpp:133
std::string GetUid() const
Definition EPurchasedTicketsRecord.cpp:117
~EPurchasedTicketsRecord()
Definition EPurchasedTicketsRecord.cpp:62
void ChangePurchasedTicketCount(signed char delta)
Definition EPurchasedTicketsRecord.cpp:80
bool IsRecordValid() const
Definition EPurchasedTicketsRecord.cpp:141
bool operator==(const std::string &uid) const
bool GetTimeTicketJourney() const
Definition EPurchasedTicketsRecord.cpp:125
EPurchasedTicketsRecord(const std::string &uid, bool timeTicketJouney, signed char newCount)
void Read(FILE *inputFile)
Definition EPurchasedTicketsRecord.cpp:88
EPurchasedTicketsRecord()
Definition EPurchasedTicketsRecord.cpp:28
int GetRecordSize()
Definition EPurchasedTicketsRecord.cpp:109
void Clear()
Definition EPurchasedTicketsRecord.cpp:70
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7