| Type |
Name |
Introduction |
| Variable |
vector<string> dataRow |
Store every column data in the current row. |
| Method |
void transact() |
Begin deal with the database file. |
| Method |
void commit() |
End of dealing. |
| Method |
void update() |
Update and store the current data row. |
| Method |
void append(vector newRow) |
Add a new data row to the end of data table. |
| Function |
int getRowCount() |
Return the number of data rows. |
| Function |
int getRowId() |
Return current data row ID. |
| Function |
bool Eof(), Bof() |
Return current status of the pointer. |
| Function |
bool moveNext(), movePrev(), moveFirst(), moveLast(), moveTo(int row) |
Pointer movement. |
| Function |
bool query(int column, string value) |
Do a special query, result will be stored in dataRow |
| Virtual Function |
virtual toString() |
Return nothing (to be overriden). |
| Type |
Name |
Introduction |
| Property |
string DealingId |
Each Dealing has a unique ID. |
| Property |
string DealerCardNo |
Refer to an unique card holder. |
| Property |
double DealingAmount |
Dealing amount (A plus or negative.). |
| Property |
string DealingType |
1 = OpenAccount; 2 = Draw; 3 = Deposit; 4 = ChangePassword |
| Property |
string DealingDateTime |
Dealing Time. |
| Method |
void appendDealing(string cardNo, double amount, string type) |
Add a new dealing to the bottom . |
| Method |
void printBill() |
Print a bill in a standard form. |
| Overriden Function |
virtual string toString() |
Return a string contained information of current account. |