|
QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
Base Class for Bloomberg Responses. More...
#include <QBbgAbstractResponse.h>
Public Types | |
| enum | BbgErrorCodesF { NoErrors = 0, ResponseError = 0x1, SecurityError = 0x2, InvalidInputs = 0x4, SessionError = 0x8, ServiceError = 0x10, FieldError = 0x20, UnknownError = 0x40, SessionStopped = 0x80, NoData = 0x100 } |
| Flags representing possible errors. More... | |
| enum | ResponseType : qint32 { ResponseType::Invalid =-1, ResponseType::BeqsResponse, ResponseType::HistoricalDataResponse = FirstFielded, ResponseType::ReferenceDataResponse, ResponseType::PortfolioDataResponse, ResponseType::IntraDayTickResponse = FirstRealTime, ResponseType::IntraDayBarResponse } |
| Type of response. More... | |
Public Member Functions | |
| virtual | ~QBbgAbstractResponse ()=0 |
| Destructor. More... | |
| virtual BbgErrorCodes | errorCode () const |
| The error code associated with the response. More... | |
| virtual QString | errorMessage () const |
| The details of the error. More... | |
| virtual QString | errorString () const |
| String representation of the error. More... | |
| virtual qint64 | getID () const |
| The ID of the response. More... | |
| virtual bool | hasErrors () const |
| Checks if the response has any error. More... | |
| virtual bool | isEmpty () const =0 |
| Check if the response contains any value. More... | |
| virtual QBbgAbstractResponse & | operator= (const QBbgAbstractResponse &other) |
| Copies another response. More... | |
| virtual ResponseType | responseType () const |
| Returns the type of the current response. More... | |
Static Public Member Functions | |
| static QString | bbgErrorCode2String (BbgErrorCodes a) |
| Converts an error code to the its string representation. More... | |
Properties | |
| BbgErrorCodes | errorCode |
| The error code associated with the response. More... | |
| QString | errorMessage |
| The details of the error. More... | |
| QString | errorString |
| String representation of the error. More... | |
| bool | hasErrors |
| Checks if the response has any error. More... | |
| bool | isEmpty |
| Check if the response contains any value. More... | |
| qint64 | responseID |
| The ID of the response. More... | |
| ResponseType | responseType |
| Returns the type of the current response. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| uint | qHash (QBbgLib::QBbgAbstractResponse::ResponseType key, uint seed=0) |
| Allows QBbgAbstractResponse::ResponseType to be used as a key of a QHash. More... | |
Base Class for Bloomberg Responses.
Flags representing possible errors.
|
strong |
Type of response.
|
pure virtual |
Destructor.
|
static |
Converts an error code to the its string representation.
|
virtual |
The error code associated with the response.
|
virtual |
The details of the error.
This string contains more detailed information regarding the error
|
virtual |
String representation of the error.
This is equivalent to bbgErrorCode2String(errorCode())
|
virtual |
The ID of the response.
This is the same as the request associated with this response
|
virtual |
Checks if the response has any error.
This is equivalent to errorCode() == BbgErrorCodesF::NoErrors
|
pure virtual |
Check if the response contains any value.
Implemented in QBbgLib::QBbgPortfolioDataResponse, QBbgLib::QBbgReferenceDataResponse, QBbgLib::QBbgIntradayTickResponse, and QBbgLib::QBbgHistoricalDataResponse.
|
virtual |
Copies another response.
|
virtual |
Returns the type of the current response.
|
related |
Allows QBbgAbstractResponse::ResponseType to be used as a key of a QHash.
|
read |
The error code associated with the response.
|
read |
The details of the error.
|
read |
String representation of the error.
|
read |
Checks if the response has any error.
|
read |
Check if the response contains any value.
|
read |
The ID of the response.
|
read |
Returns the type of the current response.
1.8.9.1