/usr/include/resip/dum/DumFeatureChain.hxx is in libresiprocate-1.9-dev 1.9.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 41 42 43 | #ifndef RESIP_DumFeatureChain_HXX
#define RESIP_DumFeatureChain_HXX
#include <vector>
#include "rutil/SharedPtr.hxx"
namespace resip
{
class DumFeature;
class DumFeatureChain
{
public:
typedef std::vector<SharedPtr<DumFeature> > FeatureList;
enum ProcessingResultMask
{
EventTakenBit = 1 << 0, //don't pass on, don't delete event
ChainDoneBit = 1 << 1 //if true chain can be deleted
};
//legal combinations
enum ProcessingResult
{
EventTaken = EventTakenBit, //don't delete event
ChainDone = ChainDoneBit, //event not consumed by chain
ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit
};
DumFeatureChain(DialogUsageManager& dum, const FeatureList& features, TargetCommand::Target& target);
ProcessingResult process(Message* msg);
private:
// std::bit_vector mActiveFeatures; //vector<bool> is the correct way on most platforms
std::vector<bool> mActiveFeatures;
FeatureList mFeatures;
};
}
#endif
|