QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
A list of requests. More...
#include <QBbgRequestGroup.h>
Public Member Functions | |
QBbgRequestGroup () | |
Creates an empty list of requests. More... | |
QBbgRequestGroup (const QBbgRequestGroup &a) | |
Creates a copy of another list of requests. More... | |
qint64 | addRequest (const QBbgAbstractRequest &a) |
Adds a request to the list and returns its ID. More... | |
qint64 | addRequest (QBbgAbstractRequest &a, qint64 preferredID) |
Adds a request to the list and returns its ID. More... | |
void | clear () |
Removes all requests from the list. More... | |
QList< QBbgAbstractRequest::RequestType > | differentTypes () const |
Returns a list of all types of requests in the list. More... | |
virtual QList< qint64 > | findSecurity (const QBbgSecurity &Secur) const |
Returns the IDs of all the requests for the selected security. More... | |
template<class T = QBbgAbstractRequest> | |
const T *const | getRequest (qint64 ID) const |
Returns the request corresponding to the given ID. More... | |
virtual QList< qint64 > | IDList () const |
Returns the IDs of all requests. More... | |
bool | isValidReq () const |
Checks if all requests in the list are valid. More... | |
QBbgRequestGroup & | operator= (const QBbgRequestGroup &a) |
Copies another list of requests. More... | |
virtual qint32 | size () const |
Returns the number of requests in the list. More... | |
Properties | |
bool | isValidReq |
Checks if the request is valid. More... | |
qint32 | size |
The number of requests in the list. More... | |
A list of requests.
This class stores a list of requests to be sent to Bloomberg, the requests will be automatically arranged so that the least ammount of transactions will be sent to the Bloomberg server
Each request will be indexed by a 64bit integer
QBbgLib::QBbgRequestGroup::QBbgRequestGroup | ( | ) |
Creates an empty list of requests.
QBbgLib::QBbgRequestGroup::QBbgRequestGroup | ( | const QBbgRequestGroup & | a | ) |
Creates a copy of another list of requests.
qint64 QBbgLib::QBbgRequestGroup::addRequest | ( | const QBbgAbstractRequest & | a | ) |
Adds a request to the list and returns its ID.
This function tries to add the request to the list, if unsuccessful it will return QBbgAbstractRequest::InvalidID
qint64 QBbgLib::QBbgRequestGroup::addRequest | ( | QBbgAbstractRequest & | a, |
qint64 | preferredID | ||
) |
Adds a request to the list and returns its ID.
This function tries to add the request to the list, if unsuccessful it will return QBbgAbstractRequest::InvalidID
void QBbgLib::QBbgRequestGroup::clear | ( | ) |
Removes all requests from the list.
QList<QBbgAbstractRequest::RequestType> QBbgLib::QBbgRequestGroup::differentTypes | ( | ) | const |
Returns a list of all types of requests in the list.
|
virtual |
Returns the IDs of all the requests for the selected security.
|
inline |
Returns the request corresponding to the given ID.
T | A QBbgAbstractRequest (default) or a class derived from it |
|
virtual |
Returns the IDs of all requests.
bool QBbgLib::QBbgRequestGroup::isValidReq | ( | ) | const |
Checks if all requests in the list are valid.
QBbgRequestGroup& QBbgLib::QBbgRequestGroup::operator= | ( | const QBbgRequestGroup & | a | ) |
Copies another list of requests.
|
virtual |
Returns the number of requests in the list.
|
read |
Checks if the request is valid.
|
read |
The number of requests in the list.