class MAGES::EventSchema¶
Overview¶
Schema for the Event data. More…
class EventSchema: public MAGES::ISchema { public: // methods static ISchema GetInstance(); void Store(string key, object data); object Get(string key); void DeleteData(string key); void ClearAllData(); void DeleteAllData(string keyPattern); List> GetSpecificData(string keyPattern); void DeleteSpecificData(string keyPattern); Dictionary GetAllData(string keyPattern); };
Inherited Members¶
public: // methods void Store(string key, object data); object Get(string key); DictionaryGetAllData(string keyPattern); void DeleteData(string key); void DeleteAllData(string keyPattern); List > GetSpecificData(string keyPattern); void DeleteSpecificData(string keyPattern); void ClearAllData(); static ISchema GetInstance();
Detailed Documentation¶
Schema for the Event data.
Methods¶
static ISchema GetInstance()
Gets the instance of the singleton.
Returns:
The singleton instance.
void Store(string key, object data)
Stores the data under the given key.
Parameters:
key |
The given key. |
data |
The data to be stored. |
object Get(string key)
Retrieves the data under the given key.
Parameters:
key |
The given key. |
ArgumentException |
Exception if key wasn’t found. |
Returns:
The data found under the given key.
void DeleteData(string key)
Deletes the data under the given key.
Parameters:
key |
The given key. |
ArgumentException |
Exceptio if key wasn’t found. |
void ClearAllData()
Clears all data.
void DeleteAllData(string keyPattern)
Deletes all schema data under the given key pattern.
Parameters:
keyPattern |
Given key. |
List> GetSpecificData(string keyPattern)
Get specific sub-convention/pattern data under the given key pattern.
Parameters:
keyPattern |
Given key pattern. |
Returns:
Dictionary of data.
void DeleteSpecificData(string keyPattern)
Delete specific sub-convention/pattern data under the given key pattern.
Parameters:
keyPattern |
Given key pattern. |
DictionaryGetAllData(string keyPattern)
Gets all schema data under the given key pattern.
Parameters:
keyPattern |
Given key. |
Returns:
The dictionary of data.