This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/Relation.h
Rebecca Schofield b6af7f18c8 insertions done
2015-09-21 16:27:23 -05:00

22 lines
No EOL
511 B
C++
Executable file

#include <iostream>
#include <vector>
#include "Attribute.h"
class Relation{
string name;
vector<Attribute> att;
int size;
public:
Relation(string n);
Relation(string n, vector<Attribute> a);
string getTableName();
vector<Attribute> getAttributes();
vector<string> getAttributeNames();
Attribute getAttributeByName(string s);
int getSize();
void display();
void insertTuple(vector<string> tuple); //we are assuming they are in order
void insertFromRelation(Relation r);
//void removeTuple();
};