-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConference.h
89 lines (72 loc) · 2.25 KB
/
Conference.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* File: Conference.h
* Author: Kapil Thakkar
*
* Created on 9 August, 2015, 10:07 AM
*/
#ifndef CONFERENCE_H
#define CONFERENCE_H
#include <iostream>
#include <fstream>
using namespace std;
#include "Track.h"
class Conference
{
private:
// The array of tracks.
Track *tracks;
// The number of parallel tracks.
int parallelTracks;
// The number of sessions in a track.
int sessionsInTrack;
// The number of papers in a session.
int papersInSession;
public:
Conference();
/**
* Constructor for Conference.
*
* @param parallelTracks is the number of parallel tracks.
* @param sessionsInTrack is the number of sessions in a track.
* @param papersInSession is the number of papers in a session.
*/
Conference(int parallelTracks, int sessionsInTrack, int papersInSession);
/**
* Initialize the tracks.
* @param parallelTracks is the number of parallel tracks.
* @param sessionsInTrack is the number of sessions in a track.
* @param papersInSession is the number of papers in a session.
*/
void initTracks(int parallelTracks, int sessionsInTrack, int papersInSession);
/**
* Gets the number of parallel tracks.
* @return the number of parallel tracks.
*/
int getParallelTracks();
/**
* Gets the number of sessions in a track.
* @return the number of sessions in a track.
*/
int getSessionsInTrack();
/**
* Gets the number of papers in a session.
* @return the number of papers in a session.
*/
int getPapersInSession();
/**
* Gets the track at the specified index.
* @param index is the index of the specified track.
* @return the track
*/
Track getTrack(int index);
/**
* Sets the paper in the specified slot to the given paper id.
* @param trackIndex is the track index.
* @param sessionIndex is the session index.
* @param paperIndex is the paper index.
* @param paperId is the id of the paper.
*/
void setPaper(int trackIndex, int sessionIndex, int paperIndex, int paperId);
void printConference(char *);
};
#endif /* CONFERENCE_H */