diff --git a/Relation.h b/Relation.h new file mode 100644 index 0000000..69ccfea --- /dev/null +++ b/Relation.h @@ -0,0 +1,45 @@ +#include +#include +#include "Attribute.h" + +using namespace std; + +//NOT DONE +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< Attribute> tuple); + + void display() + { + cout<<"\n\nDisplay of relation--------------------------------"<