rss_14 ported but does not pass integration

This commit is contained in:
Henry Schimke
2022-12-13 17:39:12 -06:00
parent 63252a6297
commit ab4dab420b
17 changed files with 1138 additions and 935 deletions

View File

@@ -14,6 +14,7 @@
* limitations under the License.
*/
use super::rss::RSS14Reader;
use super::CodaBarReader;
use super::Code128Reader;
use super::Code39Reader;
@@ -86,9 +87,9 @@ impl MultiFormatOneDReader {
if possibleFormats.contains(&BarcodeFormat::CODABAR) {
readers.push(Box::new(CodaBarReader::new()));
}
// if (possibleFormats.contains(&BarcodeFormat::RSS_14)) {
// readers.add(new RSS14Reader());
// }
if possibleFormats.contains(&BarcodeFormat::RSS_14) {
readers.push(Box::new(RSS14Reader::new()));
}
// if (possibleFormats.contains(&BarcodeFormat::RSS_EXPANDED)) {
// readers.add(new RSSExpandedReader());
// }
@@ -100,7 +101,7 @@ impl MultiFormatOneDReader {
readers.push(Box::new(Code93Reader::new()));
readers.push(Box::new(Code128Reader {}));
readers.push(Box::new(ITFReader::default()));
// readers.push(new RSS14Reader());
readers.push(Box::new(RSS14Reader::new()));
// readers.push(new RSSExpandedReader());
}