#include <qts_table.h>
Public Types | |
| enum | QTS_RecordPeriod { MINUTE_1, MINUTE_5, MINUTE_10, MINUTE_15, MINUTE_30, HOUR_1, DAY_1, WEEK_1, MONTH_1, YEAR_1 } |
Public Methods | |
| QTS_Table () | |
| ~QTS_Table () | |
| bool | load (const QString &filename) |
| Import records from a text file with the format. More... | |
| bool | save (const QString &filename) |
| Saves this table to the given file. More... | |
| bool | setRecordPeriod (const QString &info) |
| Sets the record period from a string which contains relevant information. More... | |
| void | complete () |
| Completes this table with the missing days (e.g. More... | |
| int | compareItems (QPtrCollection::Item item1, QPtrCollection::Item item2) |
| Comparison of two records. More... | |
|
||||||||||||
|
Comparison of two records. Needed for the sorting algorithm. |
|
|
Completes this table with the missing days (e.g. weekends). |
|
|
Import records from a text file with the format. Date,Open,High,Low,Close,Volume 21-Nov-01,64.36,64.60,63.48,64.05,25392600 With a month period, the date would be 'Nov 01'. With a week period, the first token of the first line would be 'Week of'.
|
|
|
Saves this table to the given file.
|
|
|
Sets the record period from a string which contains relevant information.
|