4 #include "gelectronic.h"
9 #include <unordered_map>
26 log->debug(CONSTRUCTOR,
"GTranslationTable");
30 log->debug(DESTRUCTOR,
"GTranslationTable");
51 GElectronic
getElectronics(
const std::vector<int>& identity)
const;
55 std::unordered_map<std::string, GElectronic> tt;
65 std::string formTTKey(
const std::vector<int>& identity)
const;
68 std::shared_ptr<GLogger> log;
Provides a translation table for GElectronic objects indexed by a vector-based identity.
GTranslationTable(std::shared_ptr< GLogger > logger)
Constructor.
GElectronic getElectronics(const std::vector< int > &identity) const
Retrieves the GElectronic configuration for the provided identity.
void addGElectronicWithIdentity(const std::vector< int > &identity, const GElectronic >ron)
Adds a GElectronic configuration with the provided identity.