File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,4 @@ class Blob
29
29
std::string ShiftSingleStampStr (StampBase &stmp);
30
30
};
31
31
32
-
33
32
#endif /* BLOB_H*/
Original file line number Diff line number Diff line change @@ -336,6 +336,21 @@ GalleyVector::ExtractStr(Blob &blob)
336
336
return res;
337
337
}
338
338
339
+ std::vector<std::vector<char >>
340
+ GalleyVector::ExtractBin (Blob &blob)
341
+ {
342
+ std::vector<std::vector<char >> res;
343
+ std::vector<Blob> blobs = extract_internal (blob);
344
+ for (int i=0 ; i<blobs.size (); i++)
345
+ {
346
+ Blob blob = blobs[i];
347
+ StampBase & stamp = stamps[i];
348
+ std::vector<char > v = stamp.ExtractBin (blob);
349
+ res.push_back (v);
350
+ }
351
+ return res;
352
+ }
353
+
339
354
int
340
355
GalleyVector::minSize ()
341
356
{
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class GalleyVector : public GalleyBase
44
44
GalleyVector (std::vector<std::reference_wrapper<StampBase>> arg) : stamps(arg) {};
45
45
std::vector<Blob> extract_internal (Blob &blob);
46
46
std::vector<std::string> ExtractStr (Blob &blob);
47
+ std::vector<std::vector<char >> ExtractBin (Blob &blob);
47
48
48
49
int minSize () override ;
49
50
int maxSize () override ;
You can’t perform that action at this time.
0 commit comments