| 74 | } |
| 75 | |
| 76 | void cDataMemory::registerReadRequest(const char *lvl, const char *componentInstName) |
| 77 | { |
| 78 | if (lvl == NULL) return; |
| 79 | |
| 80 | // do nothing if this request was already registered! |
| 81 | for (const auto &rq : rrq) { |
| 82 | if (!strcmp(lvl,rq.levelName) && (componentInstName==NULL || !strcmp(componentInstName,rq.instanceName))) |
| 83 | return; |
| 84 | } |
| 85 | |
| 86 | // add request to list |
| 87 | rrq.emplace_back(componentInstName, lvl); |
| 88 | |
| 89 | SMILE_DBG(2,"registerReadRequest: registered read request for level '%s' by component instance '%s'",lvl,componentInstName); |
| 90 | } |
| 91 | |
| 92 | void cDataMemory::registerWriteRequest(const char *lvl, const char *componentInstName) |
| 93 | { |