class MAGES::CountSchema

Overview

Count schema for the data. More…

class CountSchema: public MAGES::ISchema
{
public:
    // methods

    static ISchema GetInstance();
    void Store(string key, object data);
    void ClearAllData();
    List> GetSpecificData(string keyPattern);
    void DeleteSpecificData(string keyPattern);
    object Get(string key);
    Dictionary GetAllData(string keyPattern);
    void DeleteData(string key);
    void DeleteAllData(string keyPattern);
};

Inherited Members

public:
    // methods

    void Store(string key, object data);
    object Get(string key);
    Dictionary GetAllData(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

Count schema for the data.

Methods

static ISchema GetInstance()

Gets the instance of the singleton.

Returns:

The singleton instance.

void Store(string key, object data)

Stores data in the schema under the given key.

Parameters:

key

Given key.

data

Given data.

void ClearAllData()

Clears all data.

List> GetSpecificData(string keyPattern)

Get specific sub-convention/pattern data under the given key pattern.

Parameters:

keyPattern

Given key pattern.

Returns:

List key value pair of data.

void DeleteSpecificData(string keyPattern)

Delete specific sub-convention/pattern data under the given key pattern.

Parameters:

keyPattern

Given key pattern.

object Get(string key)

Retrieves data from the schema under the given key.

Parameters:

key

Given key.

ArgumentException

Exception if key wasn’t found.

Returns:

Returns the data under the given key.

Dictionary GetAllData(string keyPattern)

Gets all data from the schema.

Parameters:

keyPattern

Given schema key.

Returns:

The schema data.

void DeleteData(string key)

Deletes data from the schema under the given key.

Parameters:

key

Given key.

ArgumentException

Exception if key wasn’t found.

void DeleteAllData(string keyPattern)

Deletes data from given schema.

Parameters:

keyPattern

Given schema key.