#include <string>
#include <list>
#include "appcore/cardevent/managed_defines.h"
#include "appcore/cardevent/id_defines.h"
#include "appcore/cardevent/LibCardEvent.h"
Go to the source code of this file.
| CardEvent |
( |
const CardEvent __EVALREF |
source | ) |
|
Creates and returns new instance of CardEvent class. This method should be overriden in all child classes
- Returns
- CardEvent pointer - pointer to CardEvent class instance
| virtual void Deserialize |
( |
char * |
buffer | ) |
|
|
virtual |
Method deserializes class from given data passed as paramater. This method should be overriden in all child classes
- Parameters
-
| unsigned long GetCardEventID |
( |
| ) |
|
Returns event ID - unique identifier of event
- See also
- SetCardEventID
- Returns
- unsigned long - event ID
| unsigned char GetCardEventType |
( |
| ) |
|
Returns event type
- See also
- SetCardEventType
- Returns
- unsigned char - event type
#define PURSE 1 // filling electronic purse #define PREPAIDTICKET 2 // prepaid ticket #define BLACKLIST 3 // blocking card #define PROLONGTICKET 5 // prolonging prepaid ticket #define TRIP_TICKET 8 // trip ticket #define SAVE_PERSONAL_DATA 9 // save personal data
| unsigned char GetCardTypeID |
( |
| ) |
|
Returns card type
- See also
- SetCardTypeID
- Returns
- unsigned char - card type
| virtual int GetClassID |
( |
| ) |
|
|
virtual |
Return class ID. This method should be overriden in all child classes
- Returns
- int - class ID
Returns class name. This method should be overriden in all child classes
- Returns
- string : class name
| unsigned short GetCompany |
( |
| ) |
|
Returns company number
- See also
- SetCompany
- Returns
- unsigned short - company number
Returns correction flag
- See also
- SetCorrection
- Returns
- char - correction flag (1 = correction, 0 = not correction)
Returns MAC data (not used yet / RFU)
- See also
- SetDataMAC
- Returns
- data stream : MAC data
| unsigned long GetDateTime |
( |
| ) |
|
Returns dateTime of creation
- See also
- SetDateTime
- Returns
- unsigned long - dateTime as unix timestamp (number of seconds since January 1st, 1970)
| unsigned char GetMACLength |
( |
| ) |
|
Returns MAC length (not used yet / RFU)
- See also
- SetMACLength
- Returns
- unsigned char - MAC length
| unsigned char GetMACType |
( |
| ) |
|
Returns MAC type (not used yet / RFU)
- See also
- SetMACType
- Returns
- unsigned char - MAC type
| unsigned long GetOperator |
( |
| ) |
|
Returns operator number
- See also
- SetOperator
- Returns
- unsigned long - operator number
| virtual short GetSize |
( |
| ) |
|
|
virtual |
Returns class data size. This method should be overriden in all child classes
- Returns
- short : class data size
Returns card serial number
- See also
- SetSNR
- Returns
- long long - card serial number
| unsigned char GetTypeDBID |
( |
| ) |
|
Returns database type of event (internal card event type identificator used in database)
- See also
- TypeDBID
- Returns
- unsigned char - database type of event
| virtual void Serialize |
( |
char * |
buffer | ) |
|
|
virtual |
Method serializes class to data array passed as parameter. This method should be overriden in all child classes
- Parameters
-
| void SetCardEventID |
( |
unsigned long |
value | ) |
|
Sets card event ID (unique identifier of event)
- See also
- GetCardEventID
- Parameters
-
| value | : unsigned long - card event ID |
| void SetCardEventType |
( |
unsigned char |
value | ) |
|
|
protected |
Sets card event type. This is protected method because each class sets card event type by itself and client should not be able to modify it from the outside.
- See also
- GetCardEventType
- Parameters
-
| value | : unsigned char - card event type |
| void SetCardTypeID |
( |
unsigned char |
value | ) |
|
Sets card type ID
- See also
- GetCardTypeID
- Parameters
-
| value | : unsigned char - card type ID |
| void SetCompany |
( |
unsigned short |
value | ) |
|
Sets company number
- See also
- GetCompany
- Parameters
-
| value | : unsigned short - company number |
| void SetCorrection |
( |
char |
correction | ) |
|
Sets correction flag
- See also
- GetCorrection
- Parameters
-
| correction | : char - correction flag |
Sets MAC data (not used yet / RFU)
- See also
- GetDataMAC
- Parameters
-
| dataMAC | : byte array - MAC data |
| void SetDateTime |
( |
unsigned long |
value | ) |
|
Sets dateTime of creation
- See also
- GetDateTime
- Parameters
-
| value | : unsigned long - dateTime as unix timestamp (number of seconds since January 1st, 1970) |
| void SetMACLength |
( |
unsigned char |
MACLength | ) |
|
Sets MAC length (not used yet / RFU)
- See also
- GetMACLength
- Parameters
-
| MACLength | : unsigned char - MAC length |
| void SetMACType |
( |
unsigned char |
MACtype | ) |
|
Sets MAC type (not used yet / RFU)
- See also
- GetMACType
- Parameters
-
| MACtype | : unsigned char - MAC type |
| void SetOperator |
( |
unsigned long |
value | ) |
|
Sets operator number
- See also
- GetOperator
- Parameters
-
| value | : unsigned long - operator number |
| void SetSNR |
( |
long long |
value | ) |
|
Sets card serial number
- See also
- GetSNR
- Parameters
-
| value | : long long - card serial number |
| void TypeDBID |
( |
unsigned char |
typeDBID | ) |
|
Sets database type of event (internal card event type identificator used in database)
- See also
- GetTypeDBID
- Parameters
-
| typeDBID | : unsigned char - database type of event |
Initial value:{
private:
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
__ECLASS CardEventPr
Definition: cardevent.h:10
#define __EDATAPTR
Definition: managed_defines.h:14
The ancestor of all events. Contains common information for all events.