| 397 | } |
| 398 | |
| 399 | void Group::addDirToSymbolsMap(Symbol *symbol, param_direction_t dir) |
| 400 | { |
| 401 | Log::info("Adding direction %d for symbol \"%s\"\n", dir, symbol->getName().c_str()); |
| 402 | auto it = m_symbolDirections.find(symbol); |
| 403 | if (it == m_symbolDirections.end()) |
| 404 | { |
| 405 | set<param_direction_t> directions; |
| 406 | directions.insert(dir); |
| 407 | m_symbolDirections[symbol] = directions; |
| 408 | |
| 409 | // add symbol into list of symbols |
| 410 | if (find(m_symbols.begin(), m_symbols.end(), symbol) == m_symbols.end()) |
| 411 | { |
| 412 | m_symbols.push_back(symbol); |
| 413 | } |
| 414 | return; |
| 415 | } |
| 416 | |
| 417 | it->second.insert(dir); |
| 418 | } |
| 419 | |
| 420 | void Group::setTemplate(cpptempl::data_map groupTemplate) |
| 421 | { |
no test coverage detected