#include <Callback.h>
template<typename Result, typename ParamType, bool chain = false>
uint8 _stage
Definition: Callback.h:108
ParamType _param
Definition: Callback.h:107
#define CALLBACK_STAGE_INVALID
Definition: Callback.h:29
template<typename Result, typename ParamType, bool chain = false>
template<typename Result, typename ParamType, bool chain = false>
template<typename Result, typename ParamType, bool chain = false>
std::future<Result>& QueryCallback< Result, ParamType, chain >::GetFutureResult |
( |
| ) |
|
|
inline |
std::future< Result > _result
Definition: Callback.h:106
template<typename Result, typename ParamType, bool chain = false>
ParamType QueryCallback< Result, ParamType, chain >::GetParam |
( |
| ) |
|
|
inline |
ParamType _param
Definition: Callback.h:107
template<typename Result, typename ParamType, bool chain = false>
void QueryCallback< Result, ParamType, chain >::GetResult |
( |
Result & |
res | ) |
|
|
inline |
std::future< Result > _result
Definition: Callback.h:106
template<typename Result, typename ParamType, bool chain = false>
Returns the callback stage (or CALLBACK_STAGE_INVALID if invalid)
uint8 _stage
Definition: Callback.h:108
template<typename Result, typename ParamType, bool chain = false>
float seconds()
Definition: units.h:97
std::future< Result > _result
Definition: Callback.h:106
template<typename Result, typename ParamType, bool chain = false>
Advances the callback chain to the next stage, so upper level code can act on its results accordingly.
uint8 _stage
Definition: Callback.h:108
template<typename Result, typename ParamType, bool chain = false>
template<typename Result, typename ParamType, bool chain = false>
Resets all underlying variables (param, result and stage)
void SetParam(ParamType value)
Definition: Callback.h:63
void ResetStage()
Resets the stage of the callback chain.
Definition: Callback.h:74
void FreeResult()
Definition: Callback.h:58
template<typename Result, typename ParamType, bool chain = false>
Resets the stage of the callback chain.
uint8 _stage
Definition: Callback.h:108
template<typename Result, typename ParamType, bool chain = false>
void QueryCallback< Result, ParamType, chain >::SetFutureResult |
( |
std::future< Result > |
value | ) |
|
|
inline |
The parameter of this function should be a resultset returned from either .AsyncQuery or .AsyncPQuery.
const FieldDescriptor value
Definition: descriptor.h:1522
std::future< Result > _result
Definition: Callback.h:106
template<typename Result, typename ParamType, bool chain = false>
void QueryCallback< Result, ParamType, chain >::SetParam |
( |
ParamType |
value | ) |
|
|
inline |
ParamType _param
Definition: Callback.h:107
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Result, typename ParamType, bool chain = false>
template<typename Result, typename ParamType, bool chain = false>
std::future<Result> QueryCallback< Result, ParamType, chain >::_result |
|
private |
template<typename Result, typename ParamType, bool chain = false>
The documentation for this class was generated from the following file: