-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableDataStructure.h
More file actions
36 lines (28 loc) · 839 Bytes
/
Copy pathTableDataStructure.h
File metadata and controls
36 lines (28 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _TABLE_DATA_STRUCTURE_H
#define _TABLE_DATA_STRUCTURE_H
#include <string>
#include "Schema.h"
class TableDataStructure {
public:
string t_name;
unsigned int no_tuples;
string t_path;
Schema schema;
// default constructor
TableDataStructure() {}
// destructor
virtual ~TableDataStructure() {}
void setTname(string _t_name);
void setNoTuples(unsigned int _no_tuples);
void setTpath(string _t_path);
void setSchema(Schema& _schema);
void setTableProperties(string _t_name, int _num_tuples, string _t_path);
string getTname() { return t_name; }
unsigned int getNoTuples() { return no_tuples; }
string getTpath() { return t_path; }
Schema& getSchema() { return schema; }
void Swap (TableDataStructure &withMe);
int IsEqual(TableDataStructure &checkMe);
void CopyFrom (TableDataStructure &withMe);
};
#endif