From 92a5ba2e9388746268e52b43f0c15b03d1f645b1 Mon Sep 17 00:00:00 2001 From: Rebecca Schofield Date: Tue, 15 Sep 2015 21:13:15 -0500 Subject: [PATCH] updated DB engine --- DBEngine.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/DBEngine.h b/DBEngine.h index 32e96c2..e889297 100755 --- a/DBEngine.h +++ b/DBEngine.h @@ -5,21 +5,17 @@ using namespace std; -class DBEngine { - //member variables - //NOT DONE - //vector tables; +class DBEngine { + vector tables; public: DBEngine(); - void createCmd(); - //void openCmd(); - void saveCmd(); - void showCmd(); - void insertQuery(); - void deleteQuery(); - void selectQuery(); - void projectQuery(); - void productQuery(); - bool unionComp(); + + void addRelation(Relation r) { + tables.push_back(r); + } + + vector getRelations() { + return tables; + } };