diff --git a/Attribute.h b/Attribute.h index 2c1bd3d..08e12c9 100755 --- a/Attribute.h +++ b/Attribute.h @@ -5,33 +5,43 @@ using namespace std; //Funtional, might need more functionality -template +//template class Attribute { //a named column of a relation string name; - vector values; + bool isKey; int size; + public: - Attribute(){ } - - Attribute(vector v){ - this.values = v; - } - - Attribute(const Attribute& a){ - this.values = a.getAll(); - } - - Attribute& operator=(const Attribute& a){ - this.values = a.getAll(); + + vector values; + + void initializeAttribute(string n, vector a){ + + name = n; + values = a; } string getName(){ return name; } - vector getAll(){ - return this.values; + Attribute(){ } + + void display() + { + cout<<"Atribute name:\t"< getElements(){ + return values; + } + */ +};