Project

General

Profile

Actions

Feature #1170

open

Task #1168: Generalize Detector Decode methods

Task #1184: v1.8 updates to THaDetMap

Eliminate hardcoded model list in THaDetMap

Added by Ole Hansen about 1 month ago. Updated 6 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/04/2026
Due date:
% Done:

100%

Estimated time:
8.00 h
Spent time:
Responsible:
Ole Hansen

Description

THaDetMap has a lookup table for assigning frontend model numbers to module types (ADC, TDC, etc.) This has always been a terrible hack. This information, and a lot more, should be stored with the Decode::Module subclass implementation of each module.

Since every decoder module registers itself in a global std::set, fgModuleTypes, we can just use that set to replace the questionable lookup table.

Actions #1

Updated by Ole Hansen about 1 month ago

  • Assignee set to Ole Hansen
  • Target version set to 1.8
  • Estimated time set to 8.00 h
Actions #2

Updated by Ole Hansen about 1 month ago

  • Responsible set to Ole Hansen
Actions #3

Updated by Ole Hansen about 1 month ago

  • Parent task changed from #1168 to #1184
Actions #4

Updated by Ole Hansen about 1 month ago

  • Start date deleted (02/09/2026)
Actions #5

Updated by Ole Hansen 13 days ago

  • Start date set to 03/04/2026
  • % Done changed from 0 to 20
Actions #6

Updated by Ole Hansen 6 days ago

  • Status changed from New to In Progress
  • % Done changed from 20 to 30
Actions #7

Updated by Ole Hansen 6 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 30 to 100

THaDetMap now obtains the module information from the central module registry, Decoder::Module::fgModuleTypes(), which is populated at static initialization time. This change is fully transparent to the user code.

Actions

Also available in: Atom PDF