|
HatchKeeper
0.90
The Free Open-Source Egg Incubation Software
|
A Wrapper For The Sqlite3 Database. More...
#include <Database.h>
Public Member Functions | |
| HK_Database () | |
| Default Constructor. You'll Need To Call SetPath() More... | |
| HK_Database (string Path) | |
| Overloaded Constructor, Sets Path. More... | |
| ~HK_Database () | |
| Destructor. More... | |
| bool | CheckInfo () |
| Checks Info Table In Database To See If It Matches HK_Info Data. More... | |
| bool | CloseDB () |
| Close The Database. More... | |
| bool | CreateDB () |
| Populates Database With Defaults. More... | |
| bool | CreateBackup (string Path) |
| Copies HK_DBPath To Path. More... | |
| bool | Execute (string SQL) |
| Executes SQL Statments. More... | |
| bool | Execute (vector< string > SQL) |
| Overloaded, Executes An Array Of SQL Statments. More... | |
| vector< HK_KeyValue > | GetData () |
| Returns Table Data. More... | |
| string | GetErrors () |
| Returns sqlite3_errmsg(HK_DB)) More... | |
| bool | OpenDB () |
| Opens DB. More... | |
| HK_Batches | ReadBatches (int Sort) |
| Scans Batches Into HK_Batches Object. More... | |
| HK_Storage | ReadBreeds () |
| Scans Breeds Into A HK_Storage Object. More... | |
| HK_KeyValue | ReadSettings () |
| Reads Settings Table Into HK_KeyValue Object. More... | |
| HK_Storage | ReadGroups () |
| Scans Groups Into A HK_Storage Object. More... | |
| HK_Notifications | ReadNotify () |
| Scans Notifications Into A HK_Storage Object. More... | |
| HK_Storage | ReadRemind () |
| Reads Reminders Table Into HK_Storage Object. More... | |
| HK_Storage | ReadSchedules () |
| Reads Schedules Table Into HK_Storage Object. More... | |
| HK_Storage | ReadTypes () |
| Reads Types Table Into HK_Storage Object. More... | |
| void | SetPath (string Path) |
| Sets Path To DB. More... | |
| vector< string > | SplitStrings (string In, string Split) |
| Splits In By Split And Returns A Vector With Data. More... | |
Private Attributes | |
| string | HK_DBPath |
| vector< string > | HK_DBErrors |
| vector< HK_KeyValue > | TableData |
| sqlite3 * | HK_DB |
| HK_Database::HK_Database | ( | ) |
Default Constructor. You'll Need To Call SetPath()
Definition at line 12 of file HK_Database.cpp.
| HK_Database::HK_Database | ( | string | Path | ) |
Overloaded Constructor, Sets Path.
Definition at line 15 of file HK_Database.cpp.
| HK_Database::~HK_Database | ( | ) |
Destructor.
Definition at line 18 of file HK_Database.cpp.
| bool HK_Database::CheckInfo | ( | ) |
Checks Info Table In Database To See If It Matches HK_Info Data.
Definition at line 21 of file HK_Database.cpp.
| bool HK_Database::CloseDB | ( | ) |
Close The Database.
Definition at line 38 of file HK_Database.cpp.
| bool HK_Database::CreateBackup | ( | string | Path | ) |
Copies HK_DBPath To Path.
Definition at line 152 of file HK_Database.cpp.
| bool HK_Database::CreateDB | ( | ) |
Populates Database With Defaults.
Definition at line 41 of file HK_Database.cpp.
| bool HK_Database::Execute | ( | string | SQL | ) |
Executes SQL Statments.
| SQL | The Statment To Be Executed. One Statement At A Time. |
Definition at line 466 of file HK_Database.cpp.
| bool HK_Database::Execute | ( | vector< string > | SQL | ) |
Overloaded, Executes An Array Of SQL Statments.
| SQL | The Statments To Be Executed. |
Definition at line 539 of file HK_Database.cpp.
| vector< HK_KeyValue > HK_Database::GetData | ( | ) |
Returns Table Data.
Definition at line 165 of file HK_Database.cpp.
| string HK_Database::GetErrors | ( | ) |
Returns sqlite3_errmsg(HK_DB))
Definition at line 162 of file HK_Database.cpp.
| bool HK_Database::OpenDB | ( | ) |
Opens DB.
Definition at line 168 of file HK_Database.cpp.
| HK_Batches HK_Database::ReadBatches | ( | int | Sort | ) |
Scans Batches Into HK_Batches Object.
Definition at line 174 of file HK_Database.cpp.
| HK_Storage HK_Database::ReadBreeds | ( | ) |
Scans Breeds Into A HK_Storage Object.
Definition at line 312 of file HK_Database.cpp.
| HK_Storage HK_Database::ReadGroups | ( | ) |
Scans Groups Into A HK_Storage Object.
Definition at line 333 of file HK_Database.cpp.
| HK_Notifications HK_Database::ReadNotify | ( | ) |
Scans Notifications Into A HK_Storage Object.
Definition at line 353 of file HK_Database.cpp.
| HK_Storage HK_Database::ReadRemind | ( | ) |
Reads Reminders Table Into HK_Storage Object.
Definition at line 376 of file HK_Database.cpp.
| HK_Storage HK_Database::ReadSchedules | ( | ) |
Reads Schedules Table Into HK_Storage Object.
Definition at line 399 of file HK_Database.cpp.
| HK_KeyValue HK_Database::ReadSettings | ( | ) |
Reads Settings Table Into HK_KeyValue Object.
Definition at line 440 of file HK_Database.cpp.
| HK_Storage HK_Database::ReadTypes | ( | ) |
Reads Types Table Into HK_Storage Object.
Definition at line 420 of file HK_Database.cpp.
| void HK_Database::SetPath | ( | string | Path | ) |
Sets Path To DB.
Definition at line 459 of file HK_Database.cpp.
| vector< string > HK_Database::SplitStrings | ( | string | In, |
| string | Split | ||
| ) |
Splits In By Split And Returns A Vector With Data.
Definition at line 550 of file HK_Database.cpp.
|
private |
Definition at line 34 of file Database.h.
|
private |
Definition at line 32 of file Database.h.
|
private |
Definition at line 31 of file Database.h.
|
private |
Definition at line 33 of file Database.h.