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
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef SAVE_H
#define SAVE_H
#include <string>
#include <stdlib.h>
#include <iostream>
#include <string.h>
using namespace std;
class Save
{
private:
public:
int id;
int date;
int votesUp, votesDown;
unsigned char * data;
int dataLength;
Save(Save & save);
Save(int _id, int _date, int _votesUp, int _votesDown, string _userName, string _name);
Save(int _id, int date_, int _votesUp, int _votesDown, int _vote, string _userName, string _name, string description_, bool published_);
~Save();
string userName;
string name;
string Description;
int vote;
bool Published;
void SetName(string name);
string GetName();
void SetUserName(string userName);
string GetUserName();
void SetID(int id);
int GetID();
void SetVote(int vote);
int GetVote();
void SetVotesUp(int votesUp);
int GetVotesUp();
void SetVotesDown(int votesDown);
int GetVotesDown();
unsigned char * GetData();
void SetData(unsigned char * data_, int dataLength);
int GetDataLength();
};
#endif // SAVE_H
|