Update Parserv3.h

This commit is contained in:
Alex Huddleston 2015-09-23 02:45:53 -05:00
parent 32fbf439f8
commit 049183c4cb

View file

@ -11,6 +11,11 @@ class Relation
{ {
string name; string name;
public:
Relation()
{
}
Relation(string str) Relation(string str)
{ {
name = str; name = str;
@ -26,13 +31,33 @@ class Relation
} }
}; };
class Attribute
{
string name;
public:
Attribute(string str)
{
name = str;
}
void setAttribute(string str)
{
name = str;
}
string getAttribute()
{
return name;
}
};
class Union class Union
{ {
string Un1; string Un1;
string Un2; string Un2;
public:
Union (string s1, string s2) Union (string s1, string s2)
{ {
Un1 = s1; Un1 = s1;
@ -50,6 +75,7 @@ class Product
string Pr1; string Pr1;
string Pr2; string Pr2;
public:
Product(string s1, string s2) Product(string s1, string s2)
{ {
Pr1 = s1; Pr1 = s1;
@ -67,6 +93,7 @@ class Difference
string D1; string D1;
string D2; string D2;
public:
Difference(string s1, string s2) Difference(string s1, string s2)
{ {
D1 = s1; D1 = s1;
@ -84,6 +111,7 @@ class Renaming
string newName; string newName;
string oldName; string oldName;
public:
Renaming(string s1, string s2) Renaming(string s1, string s2)
{ {
newName = s1; newName = s1;
@ -101,6 +129,7 @@ class Projection
string newName; string newName;
string oldName; string oldName;
public:
Projection(string s1, string s2) Projection(string s1, string s2)
{ {
newName = s1; newName = s1;
@ -216,6 +245,11 @@ class Condition
{ {
string cond; string cond;
public: public:
Condition()
{
}
Condition(string str) Condition(string str)
{ {
cond = str; cond = str;
@ -246,3 +280,29 @@ class Selection
return select; return select;
} }
}; };
class Expression
{
string exp;
public:
Expression()
{
}
Expression(string str)
{
exp = str;
}
void setExpression(string str)
{
exp = str;
}
string getExpression()
{
return exp;
}
};