|
AppCore
|
#include <OneWayTicketSnapshot.h>


Public Member Functions | |
| OneWayTicketSnapshot () | |
| virtual | ~OneWayTicketSnapshot () |
| void | SetTicketType (const unsigned long type) |
| void | SetData (const unsigned char ticketIndex, const std::string &snapshotData) |
| unsigned long | GetTicketType () const |
| bool | GetData (const unsigned char ticketIndex, std::string &snapshotData) const |
| virtual bool | Serialize (QDomDocument &doc, QDomElement &newElement) const |
| Serialize saves snapshot into given xml element (Sets attributes and value/data) | |
| virtual bool | Deserialize (const QDomElement &xmlElement) |
| Deserialize loads attributes and data from given XML element and sets snapshot members with its values. | |
Public Member Functions inherited from EM::TicketIssueLogic::Snapshot | |
| void | SetCardUID (const std::string &uid) |
| void | SetTicketNumber (const unsigned long ticketNumber) |
| void | SetTimeStamp (const unsigned long timeStamp) |
| const std::string & | GetCardUID () const |
| unsigned long | GetTicketNumber () const |
| SnapshotType | GetSnapshotType () const |
| unsigned long | GetTimeStamp () const |
Additional Inherited Members | |
Public Types inherited from EM::TicketIssueLogic::Snapshot | |
| enum | SnapshotType { TypeUndefined = 0 , TypeOneWayTicket = 1 , TypeTimeTicket = 2 } |
Static Public Member Functions inherited from EM::TicketIssueLogic::Snapshot | |
| static bool | Check (const QDomElement &xmlElement, const std::string &cardUID, const unsigned long ticketNumber, const SnapshotType type) |
| Check if this snapshot has required parameters (given as arguments) | |
| static bool | ExtractTimeStamp (const QDomElement &xmlElement, unsigned long &timeStamp) |
| Extract information about snapshot creation time from given xml node. | |
Protected Member Functions inherited from EM::TicketIssueLogic::Snapshot | |
| Snapshot (const SnapshotType type) | |
| virtual | ~Snapshot () |
| INTERNAL OneWayTicketSnapshot::OneWayTicketSnapshot | ( | ) |
|
virtual |
|
virtual |
Deserialize loads attributes and data from given XML element and sets snapshot members with its values.
| xmlElement | - reference to XML element with snapshot parameters and data (created with Serialize) |
Reimplemented from EM::TicketIssueLogic::Snapshot.

| bool OneWayTicketSnapshot::GetData | ( | const unsigned char | ticketIndex, |
| std::string & | snapshotData | ||
| ) | const |



|
virtual |
Serialize saves snapshot into given xml element (Sets attributes and value/data)
| doc | - reference to instance of QDomDocument where element will be saved (used to create data node) |
| newElement | - reference to XML element to be filled with snapshot data |
Reimplemented from EM::TicketIssueLogic::Snapshot.

| void OneWayTicketSnapshot::SetData | ( | const unsigned char | ticketIndex, |
| const std::string & | snapshotData | ||
| ) |
