QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
Base class for all requests sent to Bloomberg. More...
#include <QBbgAbstractRequest.h>
Public Types | |
enum | RequestType : qint32 { RequestType::Invalid = -1, RequestType::Beqs, RequestType::HistoricalData = FirstFielded, RequestType::ReferenceData, RequestType::PortfolioData, RequestType::IntraDayTick = FirstIntraday, RequestType::IntraDayBar } |
Type of Request. More... | |
enum | SpecialIDs { InvalidID = -1024 } |
Special requestID codes. More... | |
Public Member Functions | |
virtual | ~QBbgAbstractRequest ()=0 |
Destructor. More... | |
virtual qint64 | getID () const |
Returns the current ID for the request. More... | |
virtual bool | isValidReq () const |
Checks if the request is valid. More... | |
virtual QBbgAbstractRequest & | operator= (const QBbgAbstractRequest &other) |
Copies another request. More... | |
virtual bool | operator== (const QBbgAbstractRequest &other) const |
Checks if two requests are identical. More... | |
virtual RequestType | requestType () const |
Returns the type of request. More... | |
virtual const QBbgSecurity & | security () const |
Returns the security associated with the request. More... | |
virtual void | setID (qint64 val) |
Set the ID associated to the current request. More... | |
virtual void | setSecurity (const QBbgSecurity &val) |
Sets the security for the current request to the specified one. More... | |
virtual void | setSecurity (const QString &SecName, QBbgSecurity::YellowKeys SecKey) |
Overloaded from setSecurity. More... | |
Properties | |
bool | isValidReq |
Checks if the request is valid. More... | |
qint64 | requestID |
The request unique identifier. More... | |
RequestType | requestType |
The type of the request. More... | |
QBbgSecurity | security |
The security associated with the request. More... | |
Related Functions | |
(Note that these are not member functions.) | |
uint | qHash (QBbgLib::QBbgAbstractRequest::RequestType key, uint seed=0) |
Allows QBbgAbstractRequest::RequestType to be used as a key of a QHash. More... | |
Base class for all requests sent to Bloomberg.
|
strong |
|
pure virtual |
Destructor.
|
virtual |
Returns the current ID for the request.
If the ID is not set or invalid SpecialIDs::InvalidID will be returned
|
virtual |
Checks if the request is valid.
Reimplemented in QBbgLib::QBbgHistoricalDataRequest, QBbgLib::QBbgAbstractIntradayRequest, and QBbgLib::QBbgAbstractFieldRequest.
|
virtual |
Copies another request.
|
virtual |
Checks if two requests are identical.
|
virtual |
Returns the type of request.
|
virtual |
Returns the security associated with the request.
|
virtual |
Set the ID associated to the current request.
|
virtual |
Sets the security for the current request to the specified one.
Reimplemented in QBbgLib::QBbgHistoricalDataRequest, QBbgLib::QBbgAbstractIntradayRequest, QBbgLib::QBbgPortfolioDataRequest, and QBbgLib::QBbgReferenceDataRequest.
|
virtual |
Overloaded from setSecurity.
Sets the security for the current request to the specified one
|
related |
Allows QBbgAbstractRequest::RequestType to be used as a key of a QHash.
|
read |
Checks if the request is valid.
|
readwrite |
|
read |
The type of the request.
|
readwrite |