#include #include #include "Attribute.h" //Functional class Relation { //a table with rows and columns string name; //the name of the relation (table) vector att; vector attributeNames; public: //Relation(); void initializeRelation(string n, vector attNames, vector a) { attributeNames = attNames; name = n; att = a; } void addTuple(vector< string > tuple) { if(tuple.size() != att.size()){ cout << "\n ERROR" << endl; } else { //Loop through the attribute columns for(int i = 0; i < att.size(); i++) { att[i].pushBack(tuple[i]); } } } void removeTuple(int tupleNum) { if (tupleNum > att[0].getSize() || tupleNum < 0) { cout<<"ERROR! index out of bound"<