|
WSF
|
#include <WsfXIO_Query.hpp>

Public Types | |
| typedef std::vector< WsfXIO_Query * > | QueryList |
Public Member Functions | |
| WsfXIO_QuerySet (WsfXIO_Interface *aInterfacePtr) | |
| ~WsfXIO_QuerySet () | |
| void | AddQuery (WsfXIO_Query *aQueryPtr) |
| Adds a query to the query set. This object takes ownership of aQuery. | |
| void | SetTimeout (double aWaitTimeSeconds) |
| void | Clear () |
| Removes all queries from the query set. | |
| const QueryList & | GetCompleteQueries () const |
| Returns a list of completed queries. | |
| void | GetCompleteQueries (QueryList &aQueryList) const |
| Gets a list of completed queries. | |
| void | GetIncompleteQueries (QueryList &aQueryList) const |
| Copies the list of incomplete queries to aQueryList. | |
| void | GetSuccessfulQueries (QueryList &aQueryList) const |
| Copies the list of successful queries to aQueryList. | |
Public Attributes | |
| UtCallbackListN< void(WsfXIO_QuerySet *)> | OnComplete |
Protected Member Functions | |
| void | HandleTimeout () |
| void | HandleQueryComplete (WsfXIO_Query *aQueryPtr) |
Protected Attributes | |
| WsfXIO_Interface * | mInterfacePtr |
| UtCallbackHolder | mCallbacks |
| QueryList | mCompleteQueries |
| QueryList | mIncompleteQueries |
Commonly, a query must be sent to multiple applications. In this case, a new WsfXIO_Query must be made for each connection. The WsfXIO_QuerySet provides a way to gather the results of all of these related queries.
| typedef std::vector<WsfXIO_Query*> WsfXIO_QuerySet::QueryList |
|
inline |
References mInterfacePtr.
|
inline |
References Clear().
| void WsfXIO_QuerySet::AddQuery | ( | WsfXIO_Query * | aQueryPtr | ) |
Adds a query to the query set. This object takes ownership of aQuery.
References wsf::xio::cQUERY_NOT_COMPLETE, WsfXIO_Query::GetResult(), HandleQueryComplete(), mCallbacks, mCompleteQueries, mIncompleteQueries, and WsfXIO_Query::OnComplete.
| void WsfXIO_QuerySet::Clear | ( | ) |
Removes all queries from the query set.
References mCallbacks, mCompleteQueries, and mIncompleteQueries.
Referenced by ~WsfXIO_QuerySet().
|
inline |
Returns a list of completed queries.
References mCompleteQueries.
|
inline |
Gets a list of completed queries.
References mCompleteQueries.
|
inline |
Copies the list of incomplete queries to aQueryList.
References mIncompleteQueries.
| void WsfXIO_QuerySet::GetSuccessfulQueries | ( | QueryList & | aQueryList | ) | const |
Copies the list of successful queries to aQueryList.
References wsf::xio::cQUERY_SUCCESS_MASK, WsfXIO_Query::GetResult(), and mCompleteQueries.
|
protected |
References mCompleteQueries, mIncompleteQueries, and OnComplete.
Referenced by AddQuery().
|
protected |
References mCallbacks, and OnComplete.
| void WsfXIO_QuerySet::SetTimeout | ( | double | aWaitTimeSeconds | ) |
Sets a timeout for the query set. OnComplete will be invoked if the timeout is reached prior to all queries completing. Using WsfXIO_QuerySet::SetTimeout() removes the need for calling WsfXIO_Query::SetTimeout
References mCallbacks, and mInterfacePtr.
|
protected |
Referenced by AddQuery(), Clear(), HandleTimeout(), and SetTimeout().
|
protected |
Referenced by AddQuery(), Clear(), GetCompleteQueries(), GetCompleteQueries(), GetSuccessfulQueries(), and HandleQueryComplete().
|
protected |
Referenced by AddQuery(), Clear(), GetIncompleteQueries(), and HandleQueryComplete().
|
protected |
Referenced by SetTimeout(), and WsfXIO_QuerySet().
| UtCallbackListN<void(WsfXIO_QuerySet*)> WsfXIO_QuerySet::OnComplete |
Callback list invoked when all of the queries are complete or the timeout has been reached
Referenced by HandleQueryComplete(), and HandleTimeout().