DBBase Class Reference

#include <DBBase.h>

Inheritance diagram for DBBase:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 DBBase ()
 ~DBBase ()
int open (QString &d)
void getData (QString &k, QString &d)
void setData (QString &k, QString &d)
void deleteData (QString &k)
void dump (QString &)
void close ()
void getSymbol (QString &)
void flush ()
void getIndexKey (QString &)

Protected Attributes

DB * db
QString symbol
QString indexKey


Detailed Description

Definition at line 28 of file DBBase.h.


Constructor & Destructor Documentation

DBBase::DBBase (  ) 

Definition at line 28 of file DBBase.cpp.

References db.

DBBase::~DBBase (  ) 

Definition at line 33 of file DBBase.cpp.

References close().


Member Function Documentation

int DBBase::open ( QString &  d  ) 

Definition at line 38 of file DBBase.cpp.

References db, indexKey, and symbol.

Referenced by DBIndex::addIndicator(), IndicatorPage::addLocalIndicator(), UpgradeMessage::convert034(), DBIndex::deleteAllChartObjects(), DBIndex::deleteChart(), DBIndex::deleteChartObject(), DBIndex::deleteIndicator(), DBIndex::getChartObjects(), DBIndex::getFundamentals(), DBIndex::getIndicators(), DBIndex::getNewChartObjectName(), BARS::getPFSettings(), SYMBOL::getSYMBOL(), BARS::indicatorPrefDialog(), DbPlugin::open(), QtstalkerApp::QtstalkerApp(), DBIndex::setChartObject(), and DBIndex::setFundamentals().

void DBBase::getData ( QString &  k,
QString &  d 
)

Definition at line 71 of file DBBase.cpp.

References db.

Referenced by DBIndex::addIndicator(), DbPlugin::ccPref(), DBIndex::deleteAllChartObjects(), DBIndex::deleteChartObject(), DBIndex::deleteIndicator(), DbPlugin::getCCHistory(), DBIndex::getChartObjects(), DBIndex::getFundamentals(), DbPlugin::getIndexHistory(), DBIndex::getIndicators(), DBIndex::getNewChartObjectName(), BARS::getPFSettings(), DbPlugin::getSpreadHistory(), DbPlugin::indexPref(), BARS::indicatorPrefDialog(), DBIndex::setChartObject(), and DbPlugin::spreadPref().

void DBBase::setData ( QString &  k,
QString &  d 
)

Definition at line 92 of file DBBase.cpp.

References db.

Referenced by DBIndex::addIndicator(), DbPlugin::ccPref(), DbPlugin::createNewCC(), DBIndex::deleteAllChartObjects(), DBIndex::deleteChartObject(), DBIndex::deleteIndicator(), DbPlugin::indexPref(), BARS::indicatorPrefDialog(), UpgradeMessage::saveHeaderData(), DBIndex::setChartObject(), DBIndex::setFundamentals(), and DbPlugin::spreadPref().

void DBBase::deleteData ( QString &  k  ) 

Definition at line 112 of file DBBase.cpp.

References db.

Referenced by DBIndex::deleteAllChartObjects(), DBIndex::deleteChart(), DBIndex::deleteChartObject(), StocksDialog::deleteRecord(), and FuturesDialog::deleteRecord().

void DBBase::dump ( QString &  d  ) 

Definition at line 128 of file DBBase.cpp.

References db.

void DBBase::close (  ) 

Definition at line 62 of file DBBase.cpp.

References db.

Referenced by DBIndex::addIndicator(), UpgradeMessage::convert034(), Yahoo::createAutoHistoryUrls(), UpgradeMessage::createChart(), DBIndex::deleteAllChartObjects(), DBIndex::deleteChart(), DBIndex::deleteChartObject(), DBIndex::deleteIndicator(), ChartPage::editChart(), ChartPage::exportChart(), DbPlugin::getCCHistory(), DBIndex::getChartObjects(), DBIndex::getFundamentals(), Spread::getHistory(), CC::getHistory(), DBIndex::getIndicators(), DBIndex::getNewChartObjectName(), BARS::getPFSettings(), DbPlugin::getSpreadHistory(), SYMBOL::getSYMBOL(), BARS::indicatorPrefDialog(), QtstalkerApp::loadChart(), Index::loadIndexData(), DbPlugin::loadIndexData(), Tester::loadRule(), ChartPage::newChart(), SpreadDialog::newSpread(), Yahoo::newStock(), CSV::openDb(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseFundamental(), Yahoo::parseHistory(), Yahoo::parseQuote(), IndicatorSummary::run(), Scanner::scan(), DBIndex::setChartObject(), DBIndex::setFundamentals(), QtstalkerApp::slotQuit(), Tester::test(), Yahoo::update(), NYBOT::update(), CME::update(), PortfolioDialog::updatePortfolioItems(), CME::~CME(), ~DBBase(), DBIndex::~DBIndex(), DbPlugin::~DbPlugin(), NYBOT::~NYBOT(), and Yahoo::~Yahoo().

void DBBase::getSymbol ( QString &  d  ) 

Definition at line 148 of file DBBase.cpp.

References symbol.

Referenced by FuturesDialog::FuturesDialog(), StocksDialog::split(), and StocksDialog::StocksDialog().

void DBBase::flush (  ) 

Definition at line 153 of file DBBase.cpp.

References db.

Referenced by DbPlugin::futuresPref(), DBIndex::setIndexItem(), and DbPlugin::stockPref().

void DBBase::getIndexKey ( QString &  d  ) 

Definition at line 159 of file DBBase.cpp.

References indexKey.

Referenced by StocksDialog::split().


Member Data Documentation

DB* DBBase::db [protected]

Definition at line 44 of file DBBase.h.

Referenced by close(), DBBase(), deleteData(), DbPlugin::dump(), dump(), flush(), DbPlugin::getAllBars(), getData(), DbPlugin::getFirstBar(), DbPlugin::getHistory(), DBIndex::getIndexItem(), DbPlugin::getLastBar(), DbPlugin::getNextBar(), DbPlugin::getPrevBar(), DbPlugin::getSearchBar(), DbPlugin::getSpreadHistory(), DbPlugin::loadIndexData(), open(), DbPlugin::setBar(), setData(), and DBIndex::setIndexItem().

QString DBBase::symbol [protected]

Definition at line 45 of file DBBase.h.

Referenced by DbPlugin::createNewFutures(), DbPlugin::dump(), getSymbol(), and open().

QString DBBase::indexKey [protected]

Definition at line 46 of file DBBase.h.

Referenced by DbPlugin::createNewCC(), DbPlugin::createNewFutures(), DbPlugin::createNewIndex(), DbPlugin::createNewSpread(), DbPlugin::createNewStock(), DbPlugin::getCCHistory(), getIndexKey(), DbPlugin::indexPref(), DbPlugin::open(), and open().


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