OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
I3Message.cc
Go to the documentation of this file.
1
// Copyright (C) 2006 Institut fuer Telematik, Universitaet Karlsruhe (TH)
2
//
3
// This program is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU General Public License
5
// as published by the Free Software Foundation; either version 2
6
// of the License, or (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
//
17
24
#include "
I3Message.h
"
25
26
Register_Class
(
I3SendPacketMessage
);
27
Register_Class
(
I3RemoveTriggerMessage
);
28
Register_Class
(
I3InsertTriggerMessage
);
29
Register_Class
(
I3QueryReplyMessage
);
30
31
32
I3InsertTriggerMessage::I3InsertTriggerMessage
(
const
char
*name,
int
kind) :
33
I3InsertTriggerMessage_Base
(name,kind)
34
{
35
setType
(
INSERT_TRIGGER
);
36
setSendReply
(
false
);
37
setName(
"I3::InsertTrigger"
);
38
}
39
40
I3InsertTriggerMessage::I3InsertTriggerMessage
(
const
I3InsertTriggerMessage
& other) :
41
I3InsertTriggerMessage_Base
(other.getName())
42
{
43
setType
(
INSERT_TRIGGER
);
44
setSendReply
(
false
);
45
operator=
(other);
46
}
47
48
I3InsertTriggerMessage
&
I3InsertTriggerMessage::operator=
(
const
I3InsertTriggerMessage
& other)
49
{
50
I3InsertTriggerMessage_Base::operator=
(other);
51
return
*
this
;
52
}
53
54
I3InsertTriggerMessage
*
I3InsertTriggerMessage::dup
()
const
55
{
56
return
new
I3InsertTriggerMessage
(*
this
);
57
}
58
59
I3RemoveTriggerMessage::I3RemoveTriggerMessage
(
const
char
*name,
int
kind) :
60
I3RemoveTriggerMessage_Base
(name,kind)
61
{
62
setType
(
REMOVE_TRIGGER
);
63
setName(
"I3::RemoveTrigger"
);
64
}
65
66
I3RemoveTriggerMessage::I3RemoveTriggerMessage
(
const
I3RemoveTriggerMessage
& other) :
67
I3RemoveTriggerMessage_Base
(other.getName())
68
{
69
setType
(
REMOVE_TRIGGER
);
70
operator=
(other);
71
}
72
73
I3RemoveTriggerMessage
&
I3RemoveTriggerMessage::operator=
(
const
I3RemoveTriggerMessage
& other)
74
{
75
I3RemoveTriggerMessage_Base::operator=
(other);
76
return
*
this
;
77
}
78
79
I3RemoveTriggerMessage
*
I3RemoveTriggerMessage::dup
()
const
80
{
81
return
new
I3RemoveTriggerMessage
(*
this
);
82
}
83
84
I3SendPacketMessage::I3SendPacketMessage
(
const
char
*name,
int
kind)
85
:
I3SendPacketMessage_Base
(name,kind)
86
{
87
setType
(
SEND_PACKET
);
88
setName(
"I3::SendPacket"
);
89
}
90
91
I3SendPacketMessage::I3SendPacketMessage
(
const
I3SendPacketMessage
& other) :
92
I3SendPacketMessage_Base
(other.getName())
93
{
94
setType
(
SEND_PACKET
);
95
operator=
(other);
96
}
97
98
I3SendPacketMessage
&
I3SendPacketMessage::operator=
(
const
I3SendPacketMessage
& other)
99
{
100
I3SendPacketMessage_Base::operator=
(other);
101
return
*
this
;
102
}
103
104
I3SendPacketMessage
*
I3SendPacketMessage::dup
()
const
105
{
106
return
new
I3SendPacketMessage
(*
this
);
107
}
108
109
I3QueryReplyMessage::I3QueryReplyMessage
(
const
char
*name,
int
kind)
110
:
I3QueryReplyMessage_Base
(name,kind)
111
{
112
setType
(
QUERY_REPLY
);
113
setName(
"I3::QueryReply"
);
114
}
115
116
I3QueryReplyMessage::I3QueryReplyMessage
(
const
I3QueryReplyMessage
& other) :
117
I3QueryReplyMessage_Base
(other.getName())
118
{
119
setType
(
QUERY_REPLY
);
120
operator=
(other);
121
}
122
123
I3QueryReplyMessage
&
I3QueryReplyMessage::operator=
(
const
I3QueryReplyMessage
& other)
124
{
125
I3QueryReplyMessage_Base::operator=
(other);
126
return
*
this
;
127
}
128
129
I3QueryReplyMessage
*
I3QueryReplyMessage::dup
()
const
130
{
131
return
new
I3QueryReplyMessage
(*
this
);
132
}
133
src
applications
i3
I3Message.cc
Generated on Fri Dec 7 2012 13:37:52 for OverSim by
1.8.1.2