#include <OneWayTicketSnapshot.h>
| INTERNAL OneWayTicketSnapshot::OneWayTicketSnapshot |
( |
| ) |
|
| OneWayTicketSnapshot::~OneWayTicketSnapshot |
( |
| ) |
|
|
virtual |
| bool OneWayTicketSnapshot::Deserialize |
( |
const QDomElement & |
xmlElement | ) |
|
|
virtual |
Deserialize loads attributes and data from given XML element and sets snapshot members with its values.
- Parameters
-
| xmlElement | - reference to XML element with snapshot parameters and data (created with Serialize) |
- Returns
- false on data extraction error (e.g. failed to convert som data from text) or other error. True when loading values was successful.
Reimplemented from EM::TicketIssueLogic::Snapshot.
| bool OneWayTicketSnapshot::GetData |
( |
const unsigned char |
ticketIndex, |
|
|
std::string & |
snapshotData |
|
) |
| const |
| unsigned long OneWayTicketSnapshot::GetTicketType |
( |
| ) |
const |
| bool OneWayTicketSnapshot::Serialize |
( |
QDomDocument & |
doc, |
|
|
QDomElement & |
newElement |
|
) |
| const |
|
virtual |
Serialize saves snapshot into given xml element (Sets attributes and value/data)
- Parameters
-
| 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 |
- Returns
- true on successful serializtion (xml element filling), otherwise false
Reimplemented from EM::TicketIssueLogic::Snapshot.
| void OneWayTicketSnapshot::SetData |
( |
const unsigned char |
ticketIndex, |
|
|
const std::string & |
snapshotData |
|
) |
| |
| void OneWayTicketSnapshot::SetTicketType |
( |
const unsigned long |
type | ) |
|
The documentation for this class was generated from the following files: