-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskList.h
More file actions
38 lines (33 loc) · 775 Bytes
/
Copy pathtaskList.h
File metadata and controls
38 lines (33 loc) · 775 Bytes
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
#ifndef TASKLIST_H_
#define TASKLIST_H_
#include "task.h"
class TaskList
{
private:
struct Node
{
Task data;
Node *next;
};
int size;
Node *head;
Node *tail;
public:
// Constructors
TaskList();
TaskList(const TaskList &listToCopy);
TaskList &operator=(const TaskList &listToCopy);
// Destructor
~TaskList();
// Methods
int addToList(const Task &task);
int removeFromList(int position, const std::string &taskName);
int markTaskFinished(int position, const std::string &taskName);
bool isEmpty();
int getSize() const;
void printTaskList() const;
bool loadFromCSV(const std::string &fileName);
bool saveToCSV(const std::string &fileName) const;
void clear();
};
#endif