-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBusinessNode.h
47 lines (29 loc) · 941 Bytes
/
BusinessNode.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
//
// Created by hloi on 3/30/2022.
//
#ifndef CSC109CH10INHERLINKED_BUSINESSNODE_H
#define CSC109CH10INHERLINKED_BUSINESSNODE_H
#include <string>
#include <sstream>
using std::string;
using std::ostream;
class BusinessNode {
private:
string name;
string address;
BusinessNode* nextNodePtr;
public:
BusinessNode();
BusinessNode(string name, string address, BusinessNode* nextNodePtr = nullptr);
virtual ~BusinessNode();
const string &getName() const;
void setName(const string &name);
const string &getAddress() const;
void setAddress(const string &address);
BusinessNode *getNextNodePtr() const;
void setNextNodePtr(BusinessNode *nextNodePtr);
virtual string getDescription() const;
friend ostream& operator<<(ostream& out, const BusinessNode& node);
bool operator<(BusinessNode& node); // sort by business name
};
#endif //CSC109CH10INHERLINKED_BUSINESSNODE_H