QBbgLib  0.4
Qt wrapper for the Bloomberg API
Public Member Functions | Properties | List of all members
QBbgLib::QBbgOverride Class Reference

A set of overrides. More...

#include <QBbgOverride.h>

Public Member Functions

 QBbgOverride ()
 Construct an empty set of overrides. More...
 
 QBbgOverride (const QBbgOverride &other)
 Creates a copy of another set of overrides. More...
 
virtual ~QBbgOverride ()
 Destructor. More...
 
virtual void clear ()
 Removes all overrides from the set. More...
 
virtual bool contains (const QString &Name) const
 Returns true if the set contains an overrides with the specific name. More...
 
virtual QList< QString > getKeys () const
 Same as getNames. More...
 
virtual QList< QString > getNames () const
 Returns a list of all field names overridden. More...
 
virtual bool isEmpty () const
 Returns true if the set contains no overrides. More...
 
virtual bool operator!= (const QBbgOverride &other) const
 Checks if two sets of overrides are different. More...
 
virtual QBbgOverrideoperator= (const QBbgOverride &other)
 Copies another set of overrides. More...
 
virtual bool operator== (const QBbgOverride &other) const
 Checks if two sets of overrides are identical. More...
 
virtual QString & operator[] (const QString &Name)
 Returns a reference to the override value associated with the field name. More...
 
virtual QString operator[] (const QString &Name) const
 Same as overrideValue. More...
 
virtual QString overrideValue (const QString &Name) const
 Returns the override value associated with the field name. More...
 
virtual void setOverride (const QString &Name, const QVariant &val)
 Sets an override. More...
 
virtual void setOverride (const QString &Name, const QDate &val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, const QTime &val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, double val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, qint32 val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, qint64 val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, quint32 val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (const QString &Name, quint64 val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (QString Name, const QString &val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual void setOverride (QString Name, const char *const val)
 Overloaded version of setOverride(const QString&, const QVariant&) More...
 
virtual qint32 size ()
 Returns the number of overrides set. More...
 

Properties

bool isEmpty
 Checks if any override was set. More...
 
qint32 size
 Number of overrides set. More...
 

Detailed Description

A set of overrides.

This class is used to describe a series of overrides to attach to a security.
Each override is a Name-Value pair describing the field to override and the value of that override
The overrides names will be automatically normalized as all uppercase and with spaces replaced with underscore

Warning
If you set the same overrides twice using different names (e.g. if ID_ISIN and ID005 are both set to different values), there is now way of telling which will actually be applied

Constructor & Destructor Documentation

QBbgLib::QBbgOverride::QBbgOverride ( )

Construct an empty set of overrides.

QBbgLib::QBbgOverride::QBbgOverride ( const QBbgOverride other)

Creates a copy of another set of overrides.

virtual QBbgLib::QBbgOverride::~QBbgOverride ( )
virtual

Destructor.

Member Function Documentation

virtual void QBbgLib::QBbgOverride::clear ( )
virtual

Removes all overrides from the set.

virtual bool QBbgLib::QBbgOverride::contains ( const QString &  Name) const
virtual

Returns true if the set contains an overrides with the specific name.

  • Name The name of the field to check
    Note
    This cannot recognize codes and explicit names e.g. ID_ISIN and ID005 will not be recognized as the same overrides
virtual QList<QString> QBbgLib::QBbgOverride::getKeys ( ) const
virtual

Same as getNames.

virtual QList<QString> QBbgLib::QBbgOverride::getNames ( ) const
virtual

Returns a list of all field names overridden.

virtual bool QBbgLib::QBbgOverride::isEmpty ( ) const
virtual

Returns true if the set contains no overrides.

virtual bool QBbgLib::QBbgOverride::operator!= ( const QBbgOverride other) const
virtual

Checks if two sets of overrides are different.

virtual QBbgOverride& QBbgLib::QBbgOverride::operator= ( const QBbgOverride other)
virtual

Copies another set of overrides.

virtual bool QBbgLib::QBbgOverride::operator== ( const QBbgOverride other) const
virtual

Checks if two sets of overrides are identical.

virtual QString& QBbgLib::QBbgOverride::operator[] ( const QString &  Name)
virtual

Returns a reference to the override value associated with the field name.

Note
If the set does not contain the field name it will be added to the set with a null string as value
virtual QString QBbgLib::QBbgOverride::operator[] ( const QString &  Name) const
virtual

Same as overrideValue.

virtual QString QBbgLib::QBbgOverride::overrideValue ( const QString &  Name) const
virtual

Returns the override value associated with the field name.

Returns a null string if the override was not set

virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
const QVariant &  val 
)
virtual

Sets an override.

  • Name The field name to override
  • val The value to override with
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
const QDate &  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
const QTime &  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
double  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
qint32  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
qint64  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
quint32  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( const QString &  Name,
quint64  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( QString  Name,
const QString &  val 
)
virtual
virtual void QBbgLib::QBbgOverride::setOverride ( QString  Name,
const char *const  val 
)
virtual
virtual qint32 QBbgLib::QBbgOverride::size ( )
virtual

Returns the number of overrides set.

Property Documentation

bool QBbgLib::QBbgOverride::isEmpty
read

Checks if any override was set.

Read
isEmpty()
qint32 QBbgLib::QBbgOverride::size
read

Number of overrides set.

Read
size()

The documentation for this class was generated from the following file: