cohtml::IDataStorageRequest

Encapsulates a data storage request.

#include <DataStorage.h>

Public Types

Name
enumRequestType { Key, Value}

Public Functions

Name
IDataStorageRequest()
virtual~IDataStorageRequest()
virtual RequestTypeGetRequestType() const =0
Get the request type.
virtual const char *GetId() const =0
The ID for which the data is requested.
virtual const char *GetKey() const =0
The key for which the data is requested This should be called when the request type is RequestType::Value.
virtual unsigned longGetIndex() const =0
The index for which the data is requested This should be called when the request type is RequestType::Key.

Public Types Documentation

enum RequestType

EnumeratorValueDescription
Key
Value

Public Functions Documentation

function IDataStorageRequest

IDataStorageRequest()

function ~IDataStorageRequest

virtual ~IDataStorageRequest()

function GetRequestType

virtual RequestType GetRequestType() const =0

Get the request type.

function GetId

virtual const char * GetId() const =0

The ID for which the data is requested.

function GetKey

virtual const char * GetKey() const =0

The key for which the data is requested This should be called when the request type is RequestType::Value.

function GetIndex

virtual unsigned long GetIndex() const =0

The index for which the data is requested This should be called when the request type is RequestType::Key.