This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaper.h
64 lines (49 loc) · 1.69 KB
/
paper.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef INCLUDED_paper
#define INCLUDED_paper
#include <string>
using namespace std;
class paper {
public:
int id; // The id of the paper
string title; //The title of the paper
int paperAuthors[256]; //The authors of the paper
int paperSession; //The session of this paper
// =========================================
// Constructors
// =========================================
paper();
// =========================================
// Modifier Functions
// =========================================
//Pre: The id of the paper needs to be defined
//Post: The id of the paper has been defined
void setID(int paper_id);
//Pre: The name of the paper has to be defined
//Post: The name of the paper has been defined
void setPaperTitle(string paper_title);
//Pre: The email of the paper has to be defined
//Post: The email of the paper has been defined
void setPaperAuthors(int author_id, int author_counter);
// Pre: session_id,session_counter of the paper has been defined
// Post: paperSession is defined
void setPaperSession(int session_id);
// =========================================
// Accessor Functions
// =========================================
//Pre:
//Post: The id of the paper has been defined and is returned.
int getID() const;
//Pre:
//Post: The name of the paper has been defined and and is returned.
string getPaperTitle() const;
//Pre:
//Post: The authors of the paper has been defined and is returned.
int * getPaperAuthors();
// Pre:
// Post: The session of the papers has been defined and is returned
int getPaperSession();
//Pre:
//Post: prints the paper values
void print() const;
};
#endif