1 #ifndef _ESTORAGELIST_H_
2 #define _ESTORAGELIST_H_
37 void AddStorageItem(
const int32_t &storageDataType,
const int32_t &key,
const QVariant &value );
38 void AddStorageItem(
const int32_t &storageDataType,
const int32_t &key,
void *value );
54 T
GetItem(
const int32_t &storageDataType )
const
57 if ( storageItem == NULL )
62 T requiredStrogeItem = DYNAMIC_CAST( T, storageItem );
63 if ( requiredStrogeItem == NULL )
68 return requiredStrogeItem;
72 bool GetData(
const int32_t &storageDataType,
const int32_t &key, QString &data )
const
75 if ( storageItem == NULL )
81 if ( dictionary == NULL )
86 bool ok = dictionary->
GetData( key, data );
92 bool GetData(
const int32_t &storageDataType,
const int32_t &key, T &data )
const
95 if ( storageItem == NULL )
101 if ( dictionary == NULL )
106 bool ok = dictionary->
GetData<T>( key, data );
111 bool GetPointer(
const int32_t &storageDataType,
const int32_t &key, T &data )
const
114 if ( storageItem == NULL )
120 if ( dictionary == NULL )
125 bool ok = dictionary->
GetPointer<T>( key, data );
129 bool RemoveData(
const int32_t &storageDataType,
const int32_t &key );
138 #endif // _ESTORAGELIST_H_
bool GetData(const int32_t &storageDataType, const int32_t &key, T &data) const
Definition: StorageList.h:92
void AddStorageItem(const int32_t &storageDataType, const int32_t &key, const QVariant &value)
Add data(key, value) to storageItem with specific storage type storageDataType.
Definition: StorageList.cpp:175
Interface of information element which can be state input.
Definition: StorageItem.h:13
T GetItem(const int32_t &storageDataType) const
Definition: StorageList.h:54
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
Definition: UniversalDictionary.h:10
void CopyStorageItem(const StorageItem *item)
Definition: StorageList.cpp:197
bool RemoveData(const int32_t &storageDataType, const int32_t &key)
Definition: StorageList.cpp:230
Definition: StorageList.h:11
StorageList()
Definition: StorageList.cpp:103
virtual ~StorageList()
Definition: StorageList.cpp:122
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
bool GetPointer(const int32_t key, T &data)
Definition: UniversalDictionary.h:118
void PrintToLog() const
Definition: StorageList.cpp:248
StorageItem * GetItem(const int32_t &storageDataType) const
Definition: StorageList.cpp:215
bool GetPointer(const int32_t &storageDataType, const int32_t &key, T &data) const
Definition: StorageList.h:111
bool GetData(const int32_t key, T &data)
Definition: UniversalDictionary.h:53
StorageList & operator=(const StorageList &otherInstance)
Copy all storage items(persistent and transient) to new storage list.
Definition: StorageList.cpp:137