00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef HxBpoBind2Val_h
00010 #define HxBpoBind2Val_h
00011
00012 #include "HxTagList.h"
00013 #include "HxClassName.h"
00014
00015 template<class DstValT, class SrcValT, class BpoOpT>
00016 class HxBpoBind2Val
00017 {
00018 public:
00019 HxBpoBind2Val(HxTagList& tags) : _bpoOp(tags)
00020 { _value = HxGetTag<HxValue>(tags, "value"); }
00021
00022 DstValT doIt(const SrcValT& x)
00023 { return _bpoOp.doIt(x, _value); }
00024
00025 static HxString className()
00026 { return BpoOpT::className(); }
00027
00028 private:
00029 SrcValT _value;
00030 BpoOpT _bpoOp;
00031 };
00032
00033 #endif