File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,6 @@ StampBaseV<T>::ExtractBin(Blob &blob)
107107 return v;
108108}
109109
110- class StampVariated : public virtual StampBase
111- {
112- protected:
113- int min_size;
114- int max_size;
115- public:
116- virtual int minSize () override {return min_size;}
117- virtual int maxSize () override {return max_size;}
118- };
119-
120110class StampUnbounded : public virtual StampBase
121111{
122112 protected:
Original file line number Diff line number Diff line change @@ -48,19 +48,14 @@ StampTwoChars::ExtractStr(Blob &blob)
4848}
4949
5050/* ****************************************************************************/
51- class StampSeveralChars : public StampVariated , public StampBaseStr
51+ class StampSeveralChars : public StampBaseStr
5252{
5353 public:
54- StampSeveralChars ();
54+ virtual int minSize () override {return 2 ;} /* Minimal size of consumed data */
55+ virtual int maxSize () override {return 8 ;} /* Maximal size of consumed data */
5556 std::string ExtractStr (Blob &blob) override ;
5657};
5758
58- StampSeveralChars::StampSeveralChars ()
59- {
60- min_size = 2 ;
61- max_size = 8 ;
62- }
63-
6459std::string
6560StampSeveralChars::ExtractStr (Blob &blob)
6661{
You can’t perform that action at this time.
0 commit comments