-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.hpp
52 lines (46 loc) · 1.05 KB
/
project.hpp
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
#ifndef __PROJECT_HPP__
#define __PROJECT_HPP__
#include <vector>
#include <string>
#include "Date.hpp"
#include "Base.hpp"
#include "task.hpp"
using std::string;
using std::vector;
class project:public Base{
private:
bool isComplete;
vector<Base *> items;
public:
project() : Base() {
isComplete = false;
}
project(string d, int p) : Base(){
this->set_date(d);
isComplete = false;
}
project(string d,int p,vector<Base *>v) : Base(){
this->set_date(d);
isComplete = false;
items =v ;
}
project(string n,string de,string d,bool c): Base(){
this->setName(n);
this->setDescription(de);
this->set_date(d);
isComplete = c;
}
~project();
bool complete() {return isComplete;}
void add_task();
bool has_elements();
void add_task(string s1, string s2, int i);
void add_Project(project* p);
vector<Base*> get_items();
void add_item(Base* b);
void print_project();
Base * search(string nm);
//virtual void nothing() {return;}
void mark_as_complete() {isComplete = true;}
};
#endif