AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
StorageList Class Reference

#include <StorageList.h>

Public Member Functions

 StorageList ()
 
 StorageList (const StorageList &otherStorageList)
 Copy persistent Storage items from to new storage list. More...
 
 StorageList (const StorageList *otherStorageList)
 
virtual ~StorageList ()
 
StorageListoperator= (const StorageList &otherInstance)
 Copy all storage items(persistent and transient) to new storage list. More...
 
StorageListoperator= (const StorageList *otherInstance)
 
void AddStorageItem (const int32_t &storageDataType, const int32_t &key, const QVariant &value)
 Add data(key, value) to storageItem with specific storage type storageDataType. More...
 
void AddStorageItem (const int32_t &storageDataType, const int32_t &key, void *value)
 
void CopyStorageItem (const StorageItem *item)
 
StorageItemGetItem (const int32_t &storageDataType) const
 
template<typename T >
GetItem (const int32_t &storageDataType) const
 
template<typename T >
bool GetData (const int32_t &storageDataType, const int32_t &key, T &data) const
 
template<typename T >
bool GetPointer (const int32_t &storageDataType, const int32_t &key, T &data) const
 
bool RemoveData (const int32_t &storageDataType, const int32_t &key)
 
void PrintToLog () const
 
 StorageList ()
 
 StorageList (const StorageList &otherStorageList)
 Copy persistent Storage items from to new storage list. More...
 
 StorageList (const StorageList *otherStorageList)
 
virtual ~StorageList ()
 
StorageListoperator= (const StorageList &otherInstance)
 Copy all storage items(persistent and transient) to new storage list. More...
 
StorageListoperator= (const StorageList *otherInstance)
 
void AddStorageItem (const int32_t &storageDataType, const int32_t &key, const QVariant &value)
 Add data(key, value) to storageItem with specific storage type storageDataType. More...
 
void AddStorageItem (const int32_t &storageDataType, const int32_t &key, void *value)
 
void CopyStorageItem (const StorageItem *item)
 
StorageItemGetItem (const int32_t &storageDataType) const
 
template<typename T >
GetItem (const int32_t &storageDataType) const
 
template<typename T >
bool GetData (const int32_t &storageDataType, const int32_t &key, T &data) const
 
template<typename T >
bool GetPointer (const int32_t &storageDataType, const int32_t &key, T &data) const
 
bool RemoveData (const int32_t &storageDataType, const int32_t &key)
 
void PrintToLog () const
 

Constructor & Destructor Documentation

INTERNAL StorageList::StorageList ( )
StorageList::StorageList ( const StorageList otherStorageList)

Copy persistent Storage items from to new storage list.

StorageList::StorageList ( const StorageList otherStorageList)
StorageList::~StorageList ( )
virtual
StorageList::StorageList ( )
StorageList::StorageList ( const StorageList otherStorageList)

Copy persistent Storage items from to new storage list.

StorageList::StorageList ( const StorageList otherStorageList)
virtual StorageList::~StorageList ( )
virtual

Member Function Documentation

void StorageList::AddStorageItem ( const int32_t &  storageDataType,
const int32_t &  key,
const QVariant &  value 
)

Add data(key, value) to storageItem with specific storage type storageDataType.

Note
In case that storage item with this type not exist, creates new universal dictionary UniversalDictionary with defined type storageDataType.
Parameters
storageDataType- storage item type
key- data identifier of value

Here is the call graph for this function:

void StorageList::AddStorageItem ( const int32_t &  storageDataType,
const int32_t &  key,
const QVariant &  value 
)

Add data(key, value) to storageItem with specific storage type storageDataType.

Note
In case that storage item with this type not exist, creates new universal dictionary UniversalDictionary with defined type storageDataType.
Parameters
storageDataType- storage item type
key- data identifier of value
void StorageList::AddStorageItem ( const int32_t &  storageDataType,
const int32_t &  key,
void *  value 
)

Here is the call graph for this function:

void StorageList::AddStorageItem ( const int32_t &  storageDataType,
const int32_t &  key,
void *  value 
)
void StorageList::CopyStorageItem ( const StorageItem item)

Copy item to new storage item and add to storage list

Parameters
itemthis item is added into storage.
void StorageList::CopyStorageItem ( const StorageItem item)

Copy item to new storage item and add to storage list

Parameters
itemthis item is added into storage.

Here is the call graph for this function:

template<typename T >
bool StorageList::GetData ( const int32_t &  storageDataType,
const int32_t &  key,
T &  data 
) const
inline

Here is the call graph for this function:

template<typename T >
bool StorageList::GetData ( const int32_t &  storageDataType,
const int32_t &  key,
T &  data 
) const
inline

Here is the call graph for this function:

StorageItem* StorageList::GetItem ( const int32_t &  storageDataType) const

Get item with given type

Parameters
typefirst object with this name is returned.
Returns
EStorageItem* : first object in storage with name name, or NULL when item is not found.
StorageItem * StorageList::GetItem ( const int32_t &  storageDataType) const

Get item with given type

Parameters
typefirst object with this name is returned.
Returns
EStorageItem* : first object in storage with name name, or NULL when item is not found.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
T StorageList::GetItem ( const int32_t &  storageDataType) const
inline

Here is the call graph for this function:

template<typename T >
T StorageList::GetItem ( const int32_t &  storageDataType) const
inline

Here is the call graph for this function:

template<typename T >
bool StorageList::GetPointer ( const int32_t &  storageDataType,
const int32_t &  key,
T &  data 
) const
inline

Here is the call graph for this function:

template<typename T >
bool StorageList::GetPointer ( const int32_t &  storageDataType,
const int32_t &  key,
T &  data 
) const
inline

Here is the call graph for this function:

StorageList& StorageList::operator= ( const StorageList otherInstance)

Copy all storage items(persistent and transient) to new storage list.

StorageList & StorageList::operator= ( const StorageList otherInstance)

Copy all storage items(persistent and transient) to new storage list.

StorageList& StorageList::operator= ( const StorageList otherInstance)
StorageList & StorageList::operator= ( const StorageList otherInstance)
void StorageList::PrintToLog ( ) const

Here is the call graph for this function:

void StorageList::PrintToLog ( ) const
bool StorageList::RemoveData ( const int32_t &  storageDataType,
const int32_t &  key 
)

Here is the call graph for this function:

bool StorageList::RemoveData ( const int32_t &  storageDataType,
const int32_t &  key 
)

The documentation for this class was generated from the following files: