forked from z123z123d/WebCrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseObject.h
39 lines (36 loc) · 825 Bytes
/
BaseObject.h
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
37
38
39
#pragma once
#include <bits/stdc++.h>
using namespace std;
enum DataType {
_name,
_date,
_director,
_writers,
_actors,
_labels,
_country,
_language,
_runtime,
_producer,
_earnings,
_rate,
_awards,
_reviews,
_photos,
};
class BaseData {
DataType type;
public:
virtual void setData() = 0;
virtual void* getData() = 0;
virtual void printData (const string &) = 0;
virtual DataType getType() = 0;
};
class BaseObject {
vector<BaseData*> DataSet;
public:
virtual void initDataSet (const vector<DataType>&) = 0; // initialize the data set with the list of data type
virtual vector<BaseData*> getDataSet() = 0;
virtual void printObject (const string &) = 0;
virtual int getDataSize() = 0;
};