-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet.h
49 lines (42 loc) · 1.22 KB
/
DataSet.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
#ifndef DataSet_H
#define DataSet_H
#include "DataClass.h"
/*
Author: Daniel Ortyn
Last Update: 2018/22/01
Purpose: CS 481 Project
*/
// a class to hold and manage data with a common index for several sets
class DataSet {
public:
// create a set for index -1 and class -1
DataSet();
// create a dimension for the pass index(index) and passed size(size)
DataSet(int setIndex, int classIndex);
// delete the object
~DataSet();
// gets the class(data class) of this set
int getClass() const;
// sets the class(data class) of this set and returns the previous class
int setDataClass(int newClass);
// gets the index of the set
int getIndex() const;
// sets the index of the set, returns previous index
int setIndex(int newIndex);
// gets the original index of the set
int getOriginalIndex() const;
// gets the name of the set
std::string* getName();
// sets the name returns previous name
void setName(std::string &newName);
private:
// the class(data class) of this set holding all the data
int setClass;
// gets the index the set was originally at
int originalIndex;
// gets the index the set is at
int currentIndex;
// the name of the set
std::string name;
};
#endif