From cf5ad99b9ff0f1bf5bf0292e27183160ea2bb86f Mon Sep 17 00:00:00 2001 From: Brandon Jackson <1drummer@att.net> Date: Tue, 15 Sep 2015 21:39:24 -0500 Subject: [PATCH] Update Attribute.h --- Attribute.h | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/Attribute.h b/Attribute.h index 9d53d4c..7f0df44 100644 --- a/Attribute.h +++ b/Attribute.h @@ -9,12 +9,11 @@ using namespace std; class Attribute { //a named column of a relation string name; - bool isKey; int size; public: - + vector values; void initializeAttribute(string n, vector a){ @@ -31,17 +30,40 @@ public: void display() { - cout<<"Atribute name:\t"< getElements(){ - return values; + int getSize() + { + return values.size(); } - */ + + void pushBack(string s) + { + values.push_back(s); + } +/* + Attribute(vector v){ + this.values = v; + } + + Attribute(const Attribute& a){ + this.values = a.getAll(); + } + + Attribute& operator=(const Attribute& a){ + this.values = a.getAll(); + } + + + + vector getAll(){ + return this.values; + } +*/ };