FuturesData Class Reference

#include <FuturesData.h>

List of all members.

Public Types

enum  FuturesSymbol {
  AD, BO, NB, BP,
  C, CC, CO, CD,
  CL, CR, CT, DJ,
  DX, EC, ED, ES,
  FC, GC, GI, HG,
  HO, HU, OJ, JO,
  JY, KC, LB, LC,
  LN, LH, ND, NG,
  NQ, O, PA, PB,
  PL, S, SB, SF,
  SI, SM, SP, TY,
  TYD, US, USD, W,
  YX, FW20
}

Public Member Functions

 FuturesData ()
 ~FuturesData ()
void getName (QString &)
void getSymbol (QString &)
void getExchange (QString &)
void getContract (QString &)
double getLimit ()
double getRate ()
int setSymbol (QString &)
void getMonthList (QStringList &)
void getMonths (QStringList &)
void getSymbolList (QStringList &)
void getCurrentContract (QDateTime &, QString &)
int setSymbolPath (QString &)
void getCMESymbolList (QStringList &)

Protected Attributes

QString name
QString symbol
QString exchange
QString month
float rate
float limit
QStringList monthList
QStringList symbolList
QString contract
QString cme
QString cbot
QString nymex
QString nybot
QString hmuz
QString hknuz
QString all


Detailed Description

Definition at line 30 of file FuturesData.h.


Member Enumeration Documentation

enum FuturesData::FuturesSymbol

Enumerator:
AD 
BO 
NB 
BP 
C 
CC 
CO 
CD 
CL 
CR 
CT 
DJ 
DX 
EC 
ED 
ES 
FC 
GC 
GI 
HG 
HO 
HU 
OJ 
JO 
JY 
KC 
LB 
LC 
LN 
LH 
ND 
NG 
NQ 
O 
PA 
PB 
PL 
S 
SB 
SF 
SI 
SM 
SP 
TY 
TYD 
US 
USD 
W 
YX 
FW20 

Definition at line 33 of file FuturesData.h.


Constructor & Destructor Documentation

FuturesData::FuturesData (  ) 

Definition at line 26 of file FuturesData.cpp.

References all, cbot, cme, hknuz, hmuz, monthList, nybot, nymex, and symbolList.

FuturesData::~FuturesData (  ) 

Definition at line 101 of file FuturesData.cpp.


Member Function Documentation

void FuturesData::getName ( QString &  d  ) 

Definition at line 105 of file FuturesData.cpp.

References name.

Referenced by DbPlugin::createNewFutures().

void FuturesData::getSymbol ( QString &  d  ) 

Definition at line 110 of file FuturesData.cpp.

References symbol.

Referenced by DbPlugin::createNewFutures(), DbPlugin::getCCHistory(), CC::getHistory(), NYBOT::parse(), and CME::parse().

void FuturesData::getExchange ( QString &  d  ) 

Definition at line 115 of file FuturesData.cpp.

References exchange.

Referenced by DbPlugin::getCCHistory(), CC::getHistory(), and NYBOT::parse().

void FuturesData::getContract ( QString &  d  ) 

Definition at line 120 of file FuturesData.cpp.

References contract.

double FuturesData::getLimit (  ) 

Definition at line 125 of file FuturesData.cpp.

References limit.

double FuturesData::getRate (  ) 

Definition at line 130 of file FuturesData.cpp.

References rate.

Referenced by TradeItem::calculateProfit(), PortfolioDialog::futuresProfit(), and TradeItem::getCurrentProfit().

int FuturesData::setSymbol ( QString &  d  ) 

Definition at line 173 of file FuturesData.cpp.

References AD, all, BO, BP, C, cbot, CD, CL, cme, CO, contract, CR, CT, DJ, DX, EC, ED, ES, exchange, FC, FW20, GC, getCurrentContract(), GI, HG, hknuz, hmuz, HO, HU, JO, JY, KC, LB, LC, LH, limit, LN, month, name, NB, ND, NG, NQ, nybot, nymex, O, OJ, PA, PB, PL, rate, S, SB, SF, SI, SM, SP, symbol, symbolList, TY, TYD, US, USD, W, and YX.

Referenced by PortfolioDialog::futuresProfit(), DbPlugin::getCCHistory(), CC::getHistory(), NYBOT::parse(), CME::parse(), TradeItem::setFuturesType(), and setSymbolPath().

void FuturesData::getMonthList ( QStringList &  l  ) 

Definition at line 162 of file FuturesData.cpp.

References month.

Referenced by getCurrentContract().

void FuturesData::getMonths ( QStringList &  l  ) 

Definition at line 168 of file FuturesData.cpp.

References monthList.

Referenced by getCurrentContract().

void FuturesData::getSymbolList ( QStringList &  l  ) 

Definition at line 135 of file FuturesData.cpp.

References symbolList.

Referenced by CC::createNew(), and DbPlugin::createNewCC().

void FuturesData::getCurrentContract ( QDateTime &  dt,
QString &  cont 
)

Definition at line 572 of file FuturesData.cpp.

References getMonthList(), getMonths(), and symbol.

Referenced by DbPlugin::getCCHistory(), CC::getHistory(), and setSymbol().

int FuturesData::setSymbolPath ( QString &  d  ) 

Definition at line 633 of file FuturesData.cpp.

References setSymbol().

Referenced by DbPlugin::createNewFutures().

void FuturesData::getCMESymbolList ( QStringList &  l  ) 

Definition at line 140 of file FuturesData.cpp.

Referenced by CME::CME().


Member Data Documentation

QString FuturesData::name [protected]

Definition at line 104 of file FuturesData.h.

Referenced by getName(), and setSymbol().

QString FuturesData::symbol [protected]

Definition at line 105 of file FuturesData.h.

Referenced by getCurrentContract(), getSymbol(), and setSymbol().

QString FuturesData::exchange [protected]

Definition at line 106 of file FuturesData.h.

Referenced by getExchange(), and setSymbol().

QString FuturesData::month [protected]

Definition at line 107 of file FuturesData.h.

Referenced by getMonthList(), and setSymbol().

float FuturesData::rate [protected]

Definition at line 108 of file FuturesData.h.

Referenced by getRate(), and setSymbol().

float FuturesData::limit [protected]

Definition at line 109 of file FuturesData.h.

Referenced by getLimit(), and setSymbol().

QStringList FuturesData::monthList [protected]

Definition at line 110 of file FuturesData.h.

Referenced by FuturesData(), and getMonths().

QStringList FuturesData::symbolList [protected]

Definition at line 111 of file FuturesData.h.

Referenced by FuturesData(), getSymbolList(), and setSymbol().

QString FuturesData::contract [protected]

Definition at line 112 of file FuturesData.h.

Referenced by getContract(), and setSymbol().

QString FuturesData::cme [protected]

Definition at line 113 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::cbot [protected]

Definition at line 114 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::nymex [protected]

Definition at line 115 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::nybot [protected]

Definition at line 116 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::hmuz [protected]

Definition at line 117 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::hknuz [protected]

Definition at line 118 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().

QString FuturesData::all [protected]

Definition at line 119 of file FuturesData.h.

Referenced by FuturesData(), and setSymbol().


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