Skip to content
SiteEmail

cohtml::IDataStorageRequest

Encapsulates a data storage request.

#include <DataStorage.h>

Name
enumRequestType { Key, Value}
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.
EnumeratorValueDescription
Key
Value
IDataStorageRequest()
virtual ~IDataStorageRequest()
virtual RequestType GetRequestType() 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 long GetIndex() const =0

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