Encapsulates a data storage request. More...
Public Types | |
enum | RequestType { Key, Value } |
Public Member Functions | |
IDataStorageRequest () | |
virtual | ~IDataStorageRequest () |
virtual RequestType | GetRequestType () const =0 |
Get the request type. More... | |
virtual const char * | GetId () const =0 |
The ID for which the data is requested. More... | |
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. More... | |
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. More... | |
Encapsulates a data storage request.
cohtml::IDataStorageRequest::IDataStorageRequest | ( | ) |
|
virtual |
|
pure virtual |
The ID for which the data is requested.
|
pure virtual |
The index for which the data is requested This should be called when the request type is RequestType::Key.
|
pure virtual |
The key for which the data is requested This should be called when the request type is RequestType::Value.
|
pure virtual |
Get the request type.