-
Notifications
You must be signed in to change notification settings - Fork 0
/
Model.h
35 lines (27 loc) · 583 Bytes
/
Model.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
#ifndef _MODEL_H_
#define _MODEL_H_
#include <iostream>
#include <ostream>
#include <string>
using namespace std;
class Model {
friend ostream &operator<<(ostream &, const Model &);
public:
const Model &operator=(const Model &);
bool operator==(const Model &) const;
bool operator!=(const Model &) const;
Model();
Model(int);
Model(const Model &);
~Model();
virtual bool save() = 0;
virtual bool remove() = 0;
virtual bool update() = 0;
int getId();
const string resource();
private:
const static string RESOURCE;
protected:
int id;
};
#endif