reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
TargetCommand.cxx
Go to the documentation of this file.
4
5#include <utility>
6
7using namespace resip;
8using namespace std;
9
10
12 unique_ptr<Message> message)
13 : mTarget(target),
14 mMessage(std::move(message))
15{
16}
17
19{
20 mTarget.post(std::move(mMessage));
21}
22
24{
25 return new TargetCommand(mTarget, std::move(mMessage)); // !bw! this destructive clone is actually a move, which may not be right
26}
27
29TargetCommand::encode(EncodeStream& strm) const
30{
31 return strm;
32}
33
35TargetCommand::encodeBrief(EncodeStream& strm) const
36{
37 return strm;
38}
The base-class used for message-passing.
Definition Message.hxx:21
virtual void post(std::unique_ptr< Message >)=0
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
Message * clone() const
EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
TargetCommand(Target &target, std::unique_ptr< Message > message)
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream