67 lines
1.1 KiB
C++
Executable file
67 lines
1.1 KiB
C++
Executable file
/*
|
|
#include <iostream>
|
|
#include "DBEngine.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
|
|
|
|
//DBEngine engine;
|
|
vector<string> my_vector = {"Name", "Grade", "Happiness"};
|
|
string at1 = "Name", at2 = "Grade", at3 = "Happiness";
|
|
|
|
|
|
Attribute<string> attribute_1(at1);//, attribute_2(at2), attribute_3(at3);
|
|
|
|
|
|
//Relation r(line1, my_attributes);
|
|
|
|
//r.displayTableName();
|
|
*/
|
|
|
|
#include <iostream>
|
|
//#include "DBEngine.h"
|
|
#include <vector>
|
|
#include "Attribute.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
|
|
/*
|
|
DBEngine engine;
|
|
Relation r;
|
|
Attribute<int> a;
|
|
*/
|
|
|
|
vector<string> shamWow;
|
|
shamWow.push_back("rag");
|
|
shamWow.push_back("sponge");
|
|
shamWow.push_back("wooow");
|
|
shamWow.push_back("cloth");
|
|
|
|
Attribute atributo;
|
|
atributo.initializeAttribute("atributo",shamWow);
|
|
atributo.display();
|
|
|
|
vector<string> doom;
|
|
doom.push_back("zombieman");
|
|
doom.push_back("revenant");
|
|
doom.push_back("imp");
|
|
doom.push_back("archvile");
|
|
|
|
Attribute atributo2;
|
|
atributo2.initializeAttribute("attribute_2", doom);
|
|
atributo2.display();
|
|
|
|
|
|
|
|
|
|
string line1 = "Table_1";
|
|
|
|
|
|
|
|
//Relation r(line1, my_attributes);
|
|
}
|
|
|