-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorker.h
50 lines (38 loc) · 964 Bytes
/
Worker.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
40
41
42
43
44
45
46
47
48
49
50
#ifndef WORKER_H
#define WORKER_H
#include <iostream>
#include <sqlite3.h>
#include <string>
using namespace std;
class Worker
{
public:
Worker(int = 0, string = "", string = "", int = 0);
void setId(int);
int getId()const;
void setFirstName(string);
string getFirstName()const;
void setLastName(string);
string getLastName()const;
void setAge(int);
int getAge()const;
int message(const char *const);
virtual void createTable(sqlite3 *, char *, string) = 0;
virtual void remove(sqlite3 *, string, char *);
virtual void setSalary();
virtual double getSalary()const;
virtual void add(sqlite3 *, string, char *) = 0;
virtual void edit(sqlite3 *, string, char *) = 0;
//virtual void print(sqlite3 *, string) = 0;
virtual string modifyAdd(string) = 0;
virtual string modifyEdit(string) = 0;
virtual string modifyRemove(string , int);
protected:
double salary;
private:
int id;
string first_name;
string last_name;
int age;
};
#endif