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; + } +*/ };