/[resiprocate]/main/resip/dum/TargetCommand.hxx
ViewVC logotype

Contents of /main/resip/dum/TargetCommand.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8161 - (show annotations) (download)
Fri Jul 25 20:54:42 2008 UTC (11 years, 3 months ago) by jmatthewsr
File MIME type: text/plain
File size: 902 byte(s)
Stream performance enhancements for encoding objects.  New encoding code should use 'EncodeStream','resipCerr' and 'resipCout' for encoding any resip objects.  Merge from b-jmatthewsr-streamperf2 -r 8137:8160.  
1 #if !defined(RESIP_TARGETCOMMAND_HXX)
2 #define RESIP_TARGETCOMMAND_HXX
3
4 #include <memory>
5 #include "resip/dum/DumCommand.hxx"
6
7 namespace resip
8 {
9
10 class DialogUsageManager;
11
12 class TargetCommand : public DumCommand
13 {
14 public:
15 class Target
16 {
17 public:
18 Target(DialogUsageManager& dum) : mDum(dum)
19 {
20 }
21 virtual ~Target()=0;
22 virtual void post(std::auto_ptr<Message>)=0;
23
24 protected:
25 DialogUsageManager& mDum;
26 };
27
28 TargetCommand(Target& target, std::auto_ptr<Message> message);
29 TargetCommand(const TargetCommand&);
30 void executeCommand();
31
32
33 Message* clone() const;
34 EncodeStream& encode(EncodeStream& strm) const;
35 EncodeStream& encodeBrief(EncodeStream& strm) const;
36
37 private:
38 Target& mTarget;
39 mutable std::auto_ptr<Message> mMessage;
40 };
41
42 }
43
44 #endif

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27