-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmessage.h
40 lines (39 loc) · 962 Bytes
/
message.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
#ifndef MESSAGE_H
#define MESSAGE_H
#include<string>
using namespace std;
class CombinedFragment;
class Message
{
public:
/** Default constructor */
Message();
Message(int,string,string,string,string,int);
Message(const Message&);
bool operator < (const Message&) const;
CombinedFragment getFrag();
CombinedFragment* getFragP();
string getID();
int getNum() const;
int getType();
string getName();
string getFrom();
string getTo();
void setID(string);
void setFrom(string);
void setTo(string);
void setName(string);
void setNum(int);
void setType(int);
void setFrag(CombinedFragment*);
void display();
private:
int num;
string xmi_id;
string name;
string from;
string to;
int type;
CombinedFragment* frag;
};
#endif // MESSAGE_H