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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7081 - (show annotations) (download)
Tue Apr 17 14:46:38 2007 UTC (12 years, 7 months ago) by bcampen
File MIME type: text/plain
File size: 1103 byte(s)
Reverting rev 7077 until it can get some review.
1 #ifndef RESIP_DumFeatureChain_HXX
2 #define RESIP_DumFeatureChain_HXX
3
4 #include <vector>
5 #include "rutil/SharedPtr.hxx"
6
7 namespace resip
8 {
9
10 class DumFeature;
11
12 class DumFeatureChain
13 {
14 public:
15 typedef std::vector<SharedPtr<DumFeature> > FeatureList;
16
17 enum ProcessingResultMask
18 {
19 EventTakenBit = 1 << 0, //don't pass on, don't delete event
20 ChainDoneBit = 1 << 1 //if true chain can be deleted
21 };
22
23 //legal combinations
24 enum ProcessingResult
25 {
26 EventTaken = EventTakenBit, //don't delete event
27 ChainDone = ChainDoneBit, //event not consumed by chain
28 ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit
29 };
30
31 DumFeatureChain(DialogUsageManager& dum, const FeatureList& features, TargetCommand::Target& target);
32
33 ProcessingResult process(Message* msg);
34
35 private:
36 // std::bit_vector mActiveFeatures; //vector<bool> is the correct way on most platforms
37 std::vector<bool> mActiveFeatures;
38 FeatureList mFeatures;
39 };
40
41 }
42
43 #endif
44
45

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