58 if (!
result.second && overwriteKey) {
79 std::pair<KeyToToken::iterator, bool>
result = it->second.insert(std::make_pair(
key, payloadToken));
81 if (!
result.second && overwriteKey) {
83 it->second.erase(
result.first);
86 result = it->second.insert(std::make_pair(
key, payloadToken));
119 KeyToToken::const_iterator it2 = it->second.find(
key);
121 if (it2 == it->second.end()) {
166 std::string recordInMap(iRecordType->first, 0, iRecordType->first.find_first_of(
"@"));
169 KeyToToken::const_iterator iKey = iRecordType->second.begin();
170 KeyToToken::const_iterator eKey = iRecordType->second.end();
171 for (; iKey != eKey; ++iKey) {
172 if (iKey->second == payloadToken) {
186 for (; iKey != eKey; ++iKey) {
187 if (iKey->second == triggerKeyPayloadToken) {
RecordToKeyToToken m_recordKeyToken
KeyToToken m_tscKeyToToken
std::map< std::string, std::string > KeyToToken
std::string token(const std::string &tscKey) const
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
virtual ~L1TriggerKeyList()
std::string tscKey(const std::string &triggerKeyPayloadToken) const
bool addKey(const std::string &tscKey, const std::string &payloadToken, bool overwriteKey=false)