|
gtranslationTable
|
The Translation Table module provides a compact mapping between a vector-based identity (a std::vector<int>) and an electronics configuration object (GElectronic).
The primary class is GTranslationTable. It converts an identity vector into a stable, hyphen-separated key string and stores the associated GElectronic instance in an internal map.
The typical workflow is:
Relevant public methods:
This module currently does not define or consume any module-specific option keys.
Notes:
std::shared_ptr<GOptions> primarily so it can participate in the standard logging configuration pathway (via TRANSLATIONTABLE_LOGGER).verbosity, debug) may still affect the logger behavior associated with this module.This module logs through the project logger infrastructure (GLogger) by way of GBase. The logger name for this module is "gtranslationtable" (see TRANSLATIONTABLE_LOGGER).
Typical meaning of verbosity levels:
Debug output (e.g. log->debug(...)) prints diagnostic details such as the current translation table content and key lookups, and is intended for development/troubleshooting.
Summary: Demonstrates how to create a Translation Table, register two identities, retrieve a configuration, and print the result via the module logger.
1-2-3-4-5).