| 162 | } |
| 163 | |
| 164 | void Blackboard::createEntry(const std::string& key, const TypeInfo& info) |
| 165 | { |
| 166 | if(StartWith(key, '@')) |
| 167 | { |
| 168 | if(key.find('@', 1) != std::string::npos) |
| 169 | { |
| 170 | throw LogicError("Character '@' used multiple times in the key"); |
| 171 | } |
| 172 | rootBlackboard()->createEntryImpl(key.substr(1, key.size() - 1), info); |
| 173 | } |
| 174 | else |
| 175 | { |
| 176 | createEntryImpl(key, info); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void Blackboard::cloneInto(Blackboard& dst) const |
| 181 | { |